Changeset 74970 in webkit
- Timestamp:
- Jan 4, 2011 9:05:37 AM (13 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r74967 r74970 1 2011-01-04 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=51856 6 Pass encoded back/forward tree data from the WebProcess to the UIProcess 7 8 Remove the WKBackForwardListItemCopyOriginalURL API as it's not needed: 9 * UIProcess/API/C/WKBackForwardListItem.cpp: 10 * UIProcess/API/C/WKBackForwardListItem.h: 11 * UIProcess/API/qt/qwkhistory.cpp: 12 * UIProcess/API/qt/qwkhistory.h: 13 14 * UIProcess/WebBackForwardListItem.cpp: 15 (WebKit::WebBackForwardListItem::WebBackForwardListItem): 16 * UIProcess/WebBackForwardListItem.h: 17 (WebKit::WebBackForwardListItem::create): 18 (WebKit::WebBackForwardListItem::setBackForwardData): 19 (WebKit::WebBackForwardListItem::backForwardData): 20 21 * UIProcess/WebProcessProxy.cpp: 22 (WebKit::WebProcessProxy::addBackForwardItem): 23 * UIProcess/WebProcessProxy.h: 24 25 * UIProcess/WebProcessProxy.messages.in: 26 27 * WebProcess/WebPage/WebBackForwardListProxy.cpp: 28 (WebKit::updateBackForwardItem): 29 1 30 2011-01-04 Balazs Kelemen <kbalazs@webkit.org> 2 31 -
trunk/WebKit2/UIProcess/API/C/WKBackForwardListItem.cpp
r69214 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 36 36 } 37 37 38 WKURLRef WKBackForwardListItemCopyOriginalURL(WKBackForwardListItemRef itemRef)39 {40 return toCopiedURLAPI(toImpl(itemRef)->originalURL());41 }42 43 38 WKURLRef WKBackForwardListItemCopyURL(WKBackForwardListItemRef itemRef) 44 39 { -
trunk/WebKit2/UIProcess/API/C/WKBackForwardListItem.h
r65780 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 35 35 WK_EXPORT WKTypeID WKBackForwardListItemGetTypeID(); 36 36 37 WK_EXPORT WKURLRef WKBackForwardListItemCopyOriginalURL(WKBackForwardListItemRef item);38 37 WK_EXPORT WKURLRef WKBackForwardListItemCopyURL(WKBackForwardListItemRef item); 39 38 WK_EXPORT WKStringRef WKBackForwardListItemCopyTitle(WKBackForwardListItemRef item); -
trunk/WebKit2/UIProcess/API/qt/qwkhistory.cpp
r71596 r74970 82 82 return QUrl(); 83 83 WKRetainPtr<WKURLRef> url = WKBackForwardListItemCopyURL(d->m_backForwardListItem.get()); 84 return WKURLCopyQUrl(url.get());85 }86 87 QUrl QWKHistoryItem::originalUrl() const88 {89 if (!d->m_backForwardListItem)90 return QUrl();91 WKRetainPtr<WKURLRef> url = WKBackForwardListItemCopyOriginalURL(d->m_backForwardListItem.get());92 84 return WKURLCopyQUrl(url.get()); 93 85 } -
trunk/WebKit2/UIProcess/API/qt/qwkhistory.h
r71596 r74970 48 48 QString title() const; 49 49 QUrl url() const; 50 QUrl originalUrl() const;51 50 52 51 private: -
trunk/WebKit2/UIProcess/WebBackForwardListItem.cpp
r65465 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 28 28 namespace WebKit { 29 29 30 WebBackForwardListItem::WebBackForwardListItem(const String& originalURL, const String& url, const String& title, uint64_t itemID)30 WebBackForwardListItem::WebBackForwardListItem(const String& originalURL, const String& url, const String& title, const Vector<uint8_t>& backForwardData, uint64_t itemID) 31 31 : m_originalURL(originalURL) 32 32 , m_url(url) 33 33 , m_title(title) 34 34 , m_itemID(itemID) 35 , m_backForwardData(backForwardData) 35 36 { 36 37 } -
trunk/WebKit2/UIProcess/WebBackForwardListItem.h
r70723 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 39 39 static const Type APIType = TypeBackForwardListItem; 40 40 41 static PassRefPtr<WebBackForwardListItem> create(const String& originalURL, const String& url, const String& title, uint64_t itemID)41 static PassRefPtr<WebBackForwardListItem> create(const String& originalURL, const String& url, const String& title, const Vector<uint8_t>& backForwardData, uint64_t itemID) 42 42 { 43 return adoptRef(new WebBackForwardListItem(originalURL, url, title, itemID));43 return adoptRef(new WebBackForwardListItem(originalURL, url, title, backForwardData, itemID)); 44 44 } 45 45 … … 56 56 void setTitle(const String& title) { m_title = title; } 57 57 const String& title() const { return m_title; } 58 59 void setBackForwardData(const Vector<uint8_t>& backForwardData) { m_backForwardData = backForwardData; } 60 const Vector<uint8_t>& backForwardData() const { return m_backForwardData; } 58 61 59 62 private: 60 WebBackForwardListItem(const String& originalURL, const String& url, const String& title, uint64_t itemID);63 WebBackForwardListItem(const String& originalURL, const String& url, const String& title, const Vector<uint8_t>& backForwardData, uint64_t itemID); 61 64 62 65 virtual Type type() const { return APIType; } … … 66 69 String m_title; 67 70 uint64_t m_itemID; 71 Vector<uint8_t> m_backForwardData; 68 72 }; 69 73 -
trunk/WebKit2/UIProcess/WebProcessProxy.cpp
r74528 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 182 182 } 183 183 184 void WebProcessProxy::addBackForwardItem(uint64_t itemID, const String& originalURL, const String& url, const String& title )184 void WebProcessProxy::addBackForwardItem(uint64_t itemID, const String& originalURL, const String& url, const String& title, const Vector<uint8_t>& backForwardData) 185 185 { 186 186 std::pair<WebBackForwardListItemMap::iterator, bool> result = m_backForwardListItemMap.add(itemID, 0); 187 187 if (result.second) { 188 188 // New item. 189 result.first->second = WebBackForwardListItem::create(originalURL, url, title, itemID);189 result.first->second = WebBackForwardListItem::create(originalURL, url, title, backForwardData, itemID); 190 190 return; 191 191 } … … 195 195 result.first->second->setURL(url); 196 196 result.first->second->setTitle(title); 197 result.first->second->setBackForwardData(backForwardData); 197 198 } 198 199 -
trunk/WebKit2/UIProcess/WebProcessProxy.h
r74528 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 110 110 bool sendMessage(CoreIPC::MessageID, PassOwnPtr<CoreIPC::ArgumentEncoder>); 111 111 112 void addBackForwardItem(uint64_t itemID, const String& originalURLString, const String& urlString, const String& title );112 void addBackForwardItem(uint64_t itemID, const String& originalURLString, const String& urlString, const String& title, const Vector<uint8_t>& encodedData); 113 113 114 114 #if ENABLE(PLUGIN_PROCESS) -
trunk/WebKit2/UIProcess/WebProcessProxy.messages.in
r74224 r74970 1 # Copyright (C) 2010 Apple Inc. All rights reserved.1 # Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 2 2 # 3 3 # Redistribution and use in source and binary forms, with or without … … 23 23 messages -> WebProcessProxy { 24 24 25 AddBackForwardItem(uint64_t itemID, WTF::String originalURL, WTF::String url, WTF::String title )25 AddBackForwardItem(uint64_t itemID, WTF::String originalURL, WTF::String url, WTF::String title, WTF::Vector<uint8_t> backForwardData) 26 26 DidDestroyFrame(uint64_t frameID) 27 27 -
trunk/WebKit2/WebProcess/WebPage/WebBackForwardListProxy.cpp
r71423 r74970 1 1 /* 2 * Copyright (C) 2010 Apple Inc. All rights reserved.2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 88 88 const String& title = item->title(); 89 89 90 WebProcess::shared().connection()->send(Messages::WebProcessProxy::AddBackForwardItem(itemID, originalURLString, urlString, title), 0); 90 // FIXME: Pass the encoded backForwardData to the message here. 91 WebProcess::shared().connection()->send(Messages::WebProcessProxy::AddBackForwardItem(itemID, originalURLString, urlString, title, Vector<uint8_t>()), 0); 91 92 } 92 93
Note: See TracChangeset
for help on using the changeset viewer.