Changeset 75020 in webkit
- Timestamp:
- Jan 4, 2011 3:28:59 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r75018 r75020 1 2011-01-04 Darin Adler <darin@apple.com> 2 3 Reviewed by Brady Eidson. 4 5 Add back/forward encoding and decoding to WebKit2 6 https://bugs.webkit.org/show_bug.cgi?id=51901 7 8 * WebCore.exp.in: Export functions used in WebKit2. 9 10 * history/HistoryItem.cpp: 11 (WebCore::HistoryItem::encodeBackForwardTree): Use references instead of pointers. 12 (WebCore::HistoryItem::encodeBackForwardTreeNode): Ditto. 13 (WebCore::HistoryItem::decodeBackForwardTree): Ditto. 14 * history/HistoryItem.h: Ditto. 15 * platform/network/FormData.cpp: 16 (WebCore::encode): Ditto. 17 (WebCore::decode): Ditto. 18 (WebCore::FormData::encodeForBackForward): Ditto. 19 (WebCore::FormData::decodeForBackForward): Ditto. 20 * platform/network/FormData.h: Ditto. 21 1 22 2011-01-04 Xiaomei Ji <xji@chromium.org> 2 23 -
trunk/WebCore/WebCore.exp.in
r74657 r75020 194 194 __ZN7WebCore11HistoryItem20setOriginalURLStringERKN3WTF6StringE 195 195 __ZN7WebCore11HistoryItem20setTransientPropertyERKN3WTF6StringEP11objc_object 196 __ZN7WebCore11HistoryItem21decodeBackForwardTreeERKN3WTF6StringES4_S4_RNS1_7DecoderE 196 197 __ZN7WebCore11HistoryItem22mergeAutoCompleteHintsEPS0_ 197 198 __ZN7WebCore11HistoryItem6setURLERKNS_4KURLE … … 341 342 __ZN7WebCore14SecurityOrigin32removeOriginAccessWhitelistEntryERKS0_RKN3WTF6StringES6_b 342 343 __ZN7WebCore14SecurityOrigin40setDomainRelaxationForbiddenForURLSchemeEbRKN3WTF6StringE 344 __ZN7WebCore14SecurityOrigin6createERKN3WTF6StringES4_i 343 345 __ZN7WebCore14SecurityOrigin6createERKNS_4KURLEi 344 __ZN7WebCore14SecurityOrigin6createERKN3WTF6StringES4_i345 346 __ZN7WebCore15ArchiveResource6createEN3WTF10PassRefPtrINS_12SharedBufferEEERKNS_4KURLERKNS1_6StringESA_SA_RKNS_16ResourceResponseE 346 347 __ZN7WebCore15DOMWrapperWorld15unregisterWorldEv … … 967 968 __ZNK7WebCore11HistoryItem17originalURLStringEv 968 969 __ZNK7WebCore11HistoryItem20getTransientPropertyERKN3WTF6StringE 970 __ZNK7WebCore11HistoryItem21encodeBackForwardTreeERN3WTF7EncoderE 969 971 __ZNK7WebCore11HistoryItem3urlEv 970 972 __ZNK7WebCore11HistoryItem4copyEv -
trunk/WebCore/history/HistoryItem.cpp
r74956 r75020 626 626 } 627 627 628 void HistoryItem::encodeBackForwardTree(Encoder *encoder) const629 { 630 encoder ->encodeUInt32(backForwardTreeEncodingVersion);628 void HistoryItem::encodeBackForwardTree(Encoder& encoder) const 629 { 630 encoder.encodeUInt32(backForwardTreeEncodingVersion); 631 631 632 632 encodeBackForwardTreeNode(encoder); 633 633 } 634 634 635 void HistoryItem::encodeBackForwardTreeNode(Encoder *encoder) const635 void HistoryItem::encodeBackForwardTreeNode(Encoder& encoder) const 636 636 { 637 637 size_t size = m_children.size(); 638 encoder ->encodeUInt64(size);638 encoder.encodeUInt64(size); 639 639 for (size_t i = 0; i < size; ++i) { 640 640 const HistoryItem& child = *m_children[i]; 641 641 642 encoder ->encodeString(child.m_originalURLString);643 644 encoder ->encodeString(child.m_urlString);642 encoder.encodeString(child.m_originalURLString); 643 644 encoder.encodeString(child.m_urlString); 645 645 646 646 child.encodeBackForwardTreeNode(encoder); 647 647 } 648 648 649 encoder ->encodeInt64(m_documentSequenceNumber);649 encoder.encodeInt64(m_documentSequenceNumber); 650 650 651 651 size = m_documentState.size(); 652 encoder ->encodeUInt64(size);652 encoder.encodeUInt64(size); 653 653 for (size_t i = 0; i < size; ++i) 654 encoder ->encodeString(m_documentState[i]);655 656 encoder ->encodeString(m_formContentType);657 658 encoder ->encodeBool(m_formData);654 encoder.encodeString(m_documentState[i]); 655 656 encoder.encodeString(m_formContentType); 657 658 encoder.encodeBool(m_formData); 659 659 if (m_formData) 660 660 m_formData->encodeForBackForward(encoder); 661 661 662 encoder ->encodeInt64(m_itemSequenceNumber);663 664 encoder ->encodeString(m_originalURLString);665 666 encoder ->encodeString(m_referrer);667 668 encoder ->encodeInt32(m_scrollPoint.x());669 encoder ->encodeInt32(m_scrollPoint.y());670 671 encoder ->encodeBool(m_stateObject);662 encoder.encodeInt64(m_itemSequenceNumber); 663 664 encoder.encodeString(m_originalURLString); 665 666 encoder.encodeString(m_referrer); 667 668 encoder.encodeInt32(m_scrollPoint.x()); 669 encoder.encodeInt32(m_scrollPoint.y()); 670 671 encoder.encodeBool(m_stateObject); 672 672 if (m_stateObject) { 673 673 #if !USE(V8) 674 encoder ->encodeBytes(m_stateObject->data().data(), m_stateObject->data().size());674 encoder.encodeBytes(m_stateObject->data().data(), m_stateObject->data().size()); 675 675 #else 676 encoder ->encodeString(m_stateObject->toWireString());677 #endif 678 } 679 680 encoder ->encodeString(m_target);676 encoder.encodeString(m_stateObject->toWireString()); 677 #endif 678 } 679 680 encoder.encodeString(m_target); 681 681 } 682 682 … … 694 694 }; 695 695 696 PassRefPtr<HistoryItem> HistoryItem::decodeBackForwardTree(const String& topURLString, const String& topTitle, const String& topOriginalURLString, Decoder *decoder)696 PassRefPtr<HistoryItem> HistoryItem::decodeBackForwardTree(const String& topURLString, const String& topTitle, const String& topOriginalURLString, Decoder& decoder) 697 697 { 698 698 // Since the data stream is not trusted, the decode has to be non-recursive. … … 700 700 701 701 uint32_t version; 702 if (!decoder ->decodeUInt32(version))702 if (!decoder.decodeUInt32(version)) 703 703 return 0; 704 704 if (version != backForwardTreeEncodingVersion) … … 719 719 720 720 uint64_t size; 721 if (!decoder ->decodeUInt64(size))721 if (!decoder.decodeUInt64(size)) 722 722 return 0; 723 723 size_t i; 724 724 RefPtr<HistoryItem> child; 725 725 for (i = 0; i < size; ++i) { 726 if (!decoder ->decodeString(originalURLString))726 if (!decoder.decodeString(originalURLString)) 727 727 return 0; 728 728 729 if (!decoder ->decodeString(urlString))729 if (!decoder.decodeString(urlString)) 730 730 return 0; 731 731 … … 737 737 } 738 738 739 if (!decoder ->decodeInt64(node->m_documentSequenceNumber))740 return 0; 741 742 if (!decoder ->decodeUInt64(size))739 if (!decoder.decodeInt64(node->m_documentSequenceNumber)) 740 return 0; 741 742 if (!decoder.decodeUInt64(size)) 743 743 return 0; 744 744 for (i = 0; i < size; ++i) { 745 745 String state; 746 if (!decoder ->decodeString(state))746 if (!decoder.decodeString(state)) 747 747 return 0; 748 748 node->m_documentState.append(state); 749 749 } 750 750 751 if (!decoder ->decodeString(node->m_formContentType))751 if (!decoder.decodeString(node->m_formContentType)) 752 752 return 0; 753 753 754 754 bool hasFormData; 755 if (!decoder ->decodeBool(hasFormData))755 if (!decoder.decodeBool(hasFormData)) 756 756 return 0; 757 757 if (hasFormData) { … … 761 761 } 762 762 763 if (!decoder ->decodeInt64(node->m_itemSequenceNumber))764 return 0; 765 766 if (!decoder ->decodeString(node->m_originalURLString))767 return 0; 768 769 if (!decoder ->decodeString(node->m_referrer))763 if (!decoder.decodeInt64(node->m_itemSequenceNumber)) 764 return 0; 765 766 if (!decoder.decodeString(node->m_originalURLString)) 767 return 0; 768 769 if (!decoder.decodeString(node->m_referrer)) 770 770 return 0; 771 771 772 772 int32_t x; 773 if (!decoder ->decodeInt32(x))773 if (!decoder.decodeInt32(x)) 774 774 return 0; 775 775 int32_t y; 776 if (!decoder ->decodeInt32(y))776 if (!decoder.decodeInt32(y)) 777 777 return 0; 778 778 node->m_scrollPoint = IntPoint(x, y); 779 779 780 780 bool hasStateObject; 781 if (!decoder ->decodeBool(hasStateObject))781 if (!decoder.decodeBool(hasStateObject)) 782 782 return 0; 783 783 if (hasStateObject) { 784 784 #if !USE(V8) 785 785 Vector<uint8_t> bytes; 786 if (!decoder ->decodeBytes(bytes))786 if (!decoder.decodeBytes(bytes)) 787 787 return 0; 788 788 node->m_stateObject = SerializedScriptValue::adopt(bytes); 789 789 #else 790 790 String string; 791 if (!decoder ->decodeString(string))791 if (!decoder.decodeString(string)) 792 792 return 0; 793 793 node->m_stateObject = SerializedScriptValue::createFromWire(string); … … 795 795 } 796 796 797 if (!decoder ->decodeString(node->m_target))797 if (!decoder.decodeString(node->m_target)) 798 798 return 0; 799 799 -
trunk/WebCore/history/HistoryItem.h
r74951 r75020 89 89 PassRefPtr<HistoryItem> copy() const; 90 90 91 void encodeBackForwardTree(Encoder *) const;92 static PassRefPtr<HistoryItem> decodeBackForwardTree(const String& urlString, const String& title, const String& originalURLString, Decoder *);91 void encodeBackForwardTree(Encoder&) const; 92 static PassRefPtr<HistoryItem> decodeBackForwardTree(const String& urlString, const String& title, const String& originalURLString, Decoder&); 93 93 94 94 const String& originalURLString() const; … … 227 227 HistoryItem* findTargetItem(); 228 228 229 void encodeBackForwardTreeNode(Encoder *) const;230 static PassRefPtr<HistoryItem> decodeBackForwardTreeNode(const String& urlString, const String& title, const String& originalURLString, Decoder *);229 void encodeBackForwardTreeNode(Encoder&) const; 230 static PassRefPtr<HistoryItem> decodeBackForwardTreeNode(const String& urlString, const String& title, const String& originalURLString, Decoder&); 231 231 232 232 /* When adding new member variables to this class, please notify the Qt team. -
trunk/WebCore/platform/network/FormData.cpp
r74952 r75020 330 330 } 331 331 332 static void encode(Encoder *encoder, const FormDataElement& element)333 { 334 encoder ->encodeUInt32(element.m_type);332 static void encode(Encoder& encoder, const FormDataElement& element) 333 { 334 encoder.encodeUInt32(element.m_type); 335 335 336 336 switch (element.m_type) { 337 337 case FormDataElement::data: 338 encoder ->encodeBytes(reinterpret_cast<const uint8_t*>(element.m_data.data()), element.m_data.size());338 encoder.encodeBytes(reinterpret_cast<const uint8_t*>(element.m_data.data()), element.m_data.size()); 339 339 return; 340 340 341 341 case FormDataElement::encodedFile: 342 encoder ->encodeString(element.m_filename);343 encoder ->encodeBool(element.m_shouldGenerateFile);344 #if ENABLE(BLOB) 345 encoder ->encodeInt64(element.m_fileStart);346 encoder ->encodeInt64(element.m_fileLength);347 encoder ->encodeDouble(element.m_expectedFileModificationTime);342 encoder.encodeString(element.m_filename); 343 encoder.encodeBool(element.m_shouldGenerateFile); 344 #if ENABLE(BLOB) 345 encoder.encodeInt64(element.m_fileStart); 346 encoder.encodeInt64(element.m_fileLength); 347 encoder.encodeDouble(element.m_expectedFileModificationTime); 348 348 #else 349 encoder ->encodeInt64(0);350 encoder ->encodeInt64(0);351 encoder ->encodeDouble(0);349 encoder.encodeInt64(0); 350 encoder.encodeInt64(0); 351 encoder.encodeDouble(0); 352 352 #endif 353 353 return; … … 355 355 #if ENABLE(BLOB) 356 356 case FormDataElement::encodedBlob: 357 encoder ->encodeString(element.m_blobURL.string());357 encoder.encodeString(element.m_blobURL.string()); 358 358 return; 359 359 #endif … … 363 363 } 364 364 365 static bool decode(Decoder *decoder, FormDataElement& element)365 static bool decode(Decoder& decoder, FormDataElement& element) 366 366 { 367 367 uint32_t type = element.m_type; … … 371 371 element.m_type = FormDataElement::data; 372 372 Vector<uint8_t> data; 373 if (!decoder ->decodeBytes(data))373 if (!decoder.decodeBytes(data)) 374 374 return false; 375 375 size_t size = data.size(); … … 381 381 case FormDataElement::encodedFile: { 382 382 element.m_type = FormDataElement::encodedFile; 383 if (!decoder ->decodeString(element.m_filename))384 return false; 385 if (!decoder ->decodeBool(element.m_shouldGenerateFile))383 if (!decoder.decodeString(element.m_filename)) 384 return false; 385 if (!decoder.decodeBool(element.m_shouldGenerateFile)) 386 386 return false; 387 387 int64_t fileStart; 388 if (!decoder ->decodeInt64(fileStart))388 if (!decoder.decodeInt64(fileStart)) 389 389 return false; 390 390 if (fileStart < 0) 391 391 return false; 392 392 int64_t fileLength; 393 if (!decoder ->decodeInt64(fileLength))393 if (!decoder.decodeInt64(fileLength)) 394 394 return false; 395 395 if (fileLength < fileStart) 396 396 return false; 397 397 double expectedFileModificationTime; 398 if (!decoder ->decodeDouble(expectedFileModificationTime))398 if (!decoder.decodeDouble(expectedFileModificationTime)) 399 399 return false; 400 400 #if ENABLE(BLOB) … … 410 410 element.m_type = FormDataElement::encodedBlob; 411 411 String blobURLString; 412 if (!decoder ->decodeString(blobURLString))412 if (!decoder.decodeString(blobURLString)) 413 413 return false; 414 414 element.m_blobURL = KURL(KURL(), blobURLString); … … 420 420 } 421 421 422 void FormData::encodeForBackForward(Encoder *encoder) const423 { 424 encoder ->encodeBool(m_alwaysStream);425 426 encoder ->encodeBytes(reinterpret_cast<const uint8_t*>(m_boundary.data()), m_boundary.size());422 void FormData::encodeForBackForward(Encoder& encoder) const 423 { 424 encoder.encodeBool(m_alwaysStream); 425 426 encoder.encodeBytes(reinterpret_cast<const uint8_t*>(m_boundary.data()), m_boundary.size()); 427 427 428 428 size_t size = m_elements.size(); 429 encoder ->encodeUInt64(size);429 encoder.encodeUInt64(size); 430 430 for (size_t i = 0; i < size; ++i) 431 431 encode(encoder, m_elements[i]); 432 432 433 encoder ->encodeBool(m_hasGeneratedFiles);434 435 encoder ->encodeBool(m_identifier);436 } 437 438 PassRefPtr<FormData> FormData::decodeForBackForward(Decoder *decoder)433 encoder.encodeBool(m_hasGeneratedFiles); 434 435 encoder.encodeBool(m_identifier); 436 } 437 438 PassRefPtr<FormData> FormData::decodeForBackForward(Decoder& decoder) 439 439 { 440 440 RefPtr<FormData> data = FormData::create(); 441 441 442 if (!decoder ->decodeBool(data->m_alwaysStream))442 if (!decoder.decodeBool(data->m_alwaysStream)) 443 443 return 0; 444 444 445 445 Vector<uint8_t> boundary; 446 if (!decoder ->decodeBytes(boundary))446 if (!decoder.decodeBytes(boundary)) 447 447 return 0; 448 448 size_t size = boundary.size(); … … 451 451 452 452 uint64_t elementsSize; 453 if (!decoder ->decodeUInt64(elementsSize))453 if (!decoder.decodeUInt64(elementsSize)) 454 454 return 0; 455 455 for (size_t i = 0; i < elementsSize; ++i) { … … 460 460 } 461 461 462 if (!decoder ->decodeBool(data->m_hasGeneratedFiles))462 if (!decoder.decodeBool(data->m_hasGeneratedFiles)) 463 463 return 0; 464 464 465 if (!decoder ->decodeInt64(data->m_identifier))465 if (!decoder.decodeInt64(data->m_identifier)) 466 466 return 0; 467 467 -
trunk/WebCore/platform/network/FormData.h
r74952 r75020 102 102 ~FormData(); 103 103 104 void encodeForBackForward(Encoder *) const;105 static PassRefPtr<FormData> decodeForBackForward(Decoder *);104 void encodeForBackForward(Encoder&) const; 105 static PassRefPtr<FormData> decodeForBackForward(Decoder&); 106 106 107 107 void appendData(const void* data, size_t); -
trunk/WebKit2/ChangeLog
r75015 r75020 1 2011-01-04 Darin Adler <darin@apple.com> 2 3 Reviewed by Brady Eidson. 4 5 Add back/forward encoding and decoding to WebKit2 6 https://bugs.webkit.org/show_bug.cgi?id=51901 7 8 * GNUmakefile.am: Added new source files. 9 * WebKit2.pro: Ditto. 10 * WebKit2.xcodeproj/project.pbxproj: Ditto. 11 * win/WebKit2.vcproj: Ditto. 12 13 * WebProcess/WebPage/DecoderAdapter.cpp: Added. 14 * WebProcess/WebPage/DecoderAdapter.h: Added. 15 * WebProcess/WebPage/EncoderAdapter.cpp: Added. 16 * WebProcess/WebPage/EncoderAdapter.h: Added. 17 18 * WebProcess/WebPage/WebBackForwardListProxy.cpp: 19 (WebKit::updateBackForwardItem): Added code to encode the back/forward 20 tree and send it along. The code to decode needs to wait on Brady's 21 current project. 22 1 23 2011-01-04 Anders Carlsson <andersca@apple.com> 2 24 -
trunk/WebKit2/GNUmakefile.am
r74766 r75020 401 401 WebKit2/WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp \ 402 402 WebKit2/WebProcess/WebPage/ChunkedUpdateDrawingArea.h \ 403 WebKit2/WebProcess/WebPage/DecoderAdapter.cpp \ 404 WebKit2/WebProcess/WebPage/DecoderAdapter.h \ 403 405 WebKit2/WebProcess/WebPage/DrawingArea.cpp \ 404 406 WebKit2/WebProcess/WebPage/DrawingArea.h \ 407 WebKit2/WebProcess/WebPage/EncoderAdapter.cpp \ 408 WebKit2/WebProcess/WebPage/EncoderAdapter.h \ 405 409 WebKit2/WebProcess/WebPage/FindController.cpp \ 406 410 WebKit2/WebProcess/WebPage/FindController.h \ -
trunk/WebKit2/WebKit2.pro
r74967 r75020 633 633 WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp \ 634 634 WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp \ 635 WebProcess/WebPage/DecoderAdapter.cpp \ 635 636 WebProcess/WebPage/DrawingArea.cpp \ 637 WebProcess/WebPage/EncoderAdapter.cpp \ 636 638 WebProcess/WebPage/FindController.cpp \ 637 639 WebProcess/WebPage/PageOverlay.cpp \ -
trunk/WebKit2/WebKit2.xcodeproj/project.pbxproj
r75010 r75020 273 273 9391F2CA121B679A00EBF7E8 /* WebFrameNetworkingContext.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9391F284121B38F500EBF7E8 /* WebFrameNetworkingContext.mm */; }; 274 274 9391F2CB121B67AD00EBF7E8 /* WebFrameNetworkingContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 9391F283121B38F500EBF7E8 /* WebFrameNetworkingContext.h */; }; 275 93FC67BD12D3CCF200A60610 /* DecoderAdapter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93FC679D12D3CC7400A60610 /* DecoderAdapter.cpp */; }; 276 93FC67BE12D3CCF200A60610 /* DecoderAdapter.h in Headers */ = {isa = PBXBuildFile; fileRef = 93FC679E12D3CC7400A60610 /* DecoderAdapter.h */; }; 277 93FC67BF12D3CCF200A60610 /* EncoderAdapter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93FC679F12D3CC7400A60610 /* EncoderAdapter.cpp */; }; 278 93FC67C012D3CCF200A60610 /* EncoderAdapter.h in Headers */ = {isa = PBXBuildFile; fileRef = 93FC67A012D3CC7400A60610 /* EncoderAdapter.h */; }; 275 279 BC0092F7115837A300E0AE2A /* RunLoopMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC0092F5115837A300E0AE2A /* RunLoopMac.mm */; }; 276 280 BC0092F8115837A300E0AE2A /* WorkQueueMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC0092F6115837A300E0AE2A /* WorkQueueMac.cpp */; }; … … 950 954 9391F283121B38F500EBF7E8 /* WebFrameNetworkingContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebFrameNetworkingContext.h; sourceTree = "<group>"; }; 951 955 9391F284121B38F500EBF7E8 /* WebFrameNetworkingContext.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebFrameNetworkingContext.mm; sourceTree = "<group>"; }; 956 93FC679D12D3CC7400A60610 /* DecoderAdapter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DecoderAdapter.cpp; sourceTree = "<group>"; }; 957 93FC679E12D3CC7400A60610 /* DecoderAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DecoderAdapter.h; sourceTree = "<group>"; }; 958 93FC679F12D3CC7400A60610 /* EncoderAdapter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EncoderAdapter.cpp; sourceTree = "<group>"; }; 959 93FC67A012D3CC7400A60610 /* EncoderAdapter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EncoderAdapter.h; sourceTree = "<group>"; }; 952 960 A72D5D7F1236CBA800A88B15 /* WebSerializedScriptValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebSerializedScriptValue.h; sourceTree = "<group>"; }; 953 961 BC0092F5115837A300E0AE2A /* RunLoopMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RunLoopMac.mm; sourceTree = "<group>"; }; … … 1886 1894 BC5F7BB21182376C0052C02C /* ChunkedUpdateDrawingArea.cpp */, 1887 1895 BC5F7BB31182376C0052C02C /* ChunkedUpdateDrawingArea.h */, 1896 93FC679D12D3CC7400A60610 /* DecoderAdapter.cpp */, 1897 93FC679E12D3CC7400A60610 /* DecoderAdapter.h */, 1888 1898 BC8452A51162C80900CAB9B5 /* DrawingArea.cpp */, 1889 1899 BC8452A61162C80900CAB9B5 /* DrawingArea.h */, 1900 93FC679F12D3CC7400A60610 /* EncoderAdapter.cpp */, 1901 93FC67A012D3CC7400A60610 /* EncoderAdapter.h */, 1890 1902 1A90C1F31264FD71003E44D4 /* FindController.cpp */, 1891 1903 1A90C1F21264FD71003E44D4 /* FindController.h */, … … 2825 2837 BCAC111F12C92C1F00B08EEE /* WebDatabaseManagerProxyClient.h in Headers */, 2826 2838 BCCF6B2512C93E7A008F9C35 /* ImageOptions.h in Headers */, 2839 93FC67BE12D3CCF200A60610 /* DecoderAdapter.h in Headers */, 2840 93FC67C012D3CCF200A60610 /* EncoderAdapter.h in Headers */, 2827 2841 1A5E4DA412D3BD3D0099A2BB /* TextCheckerState.h in Headers */, 2828 2842 ); … … 3255 3269 BCCF6AC912C91F59008F9C35 /* WKImageCG.cpp in Sources */, 3256 3270 BCAC112012C92C1F00B08EEE /* WebDatabaseManagerProxyClient.cpp in Sources */, 3271 93FC67BD12D3CCF200A60610 /* DecoderAdapter.cpp in Sources */, 3272 93FC67BF12D3CCF200A60610 /* EncoderAdapter.cpp in Sources */, 3257 3273 ); 3258 3274 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebKit2/WebProcess/WebPage/WebBackForwardListProxy.cpp
r74999 r75020 26 26 #include "WebBackForwardListProxy.h" 27 27 28 #include "EncoderAdapter.h" 28 29 #include "WebCoreArgumentCoders.h" 29 30 #include "WebPage.h" … … 88 89 const String& title = item->title(); 89 90 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 // FIXME: We only want to do this work for top level back/forward items. 92 // The best way to do that is probably to arrange for this entire function to only be called by top leve back/forward items. 93 EncoderAdapter encoder; 94 item->encodeBackForwardTree(encoder); 95 96 WebProcess::shared().connection()->send(Messages::WebProcessProxy::AddBackForwardItem(itemID, originalURLString, urlString, title, encoder.data()), 0); 92 97 } 93 98 -
trunk/WebKit2/win/WebKit2.vcproj
r75010 r75020 1367 1367 </File> 1368 1368 <File 1369 RelativePath="..\WebProcess\WebPage\DecoderAdapter.cpp" 1370 > 1371 </File> 1372 <File 1373 RelativePath="..\WebProcess\WebPage\DecoderAdapter.h" 1374 > 1375 </File> 1376 <File 1369 1377 RelativePath="..\WebProcess\WebPage\DrawingArea.cpp" 1370 1378 > … … 1372 1380 <File 1373 1381 RelativePath="..\WebProcess\WebPage\DrawingArea.h" 1382 > 1383 </File> 1384 <File 1385 RelativePath="..\WebProcess\WebPage\EncoderAdapter.cpp" 1386 > 1387 </File> 1388 <File 1389 RelativePath="..\WebProcess\WebPage\EncoderAdapter.h" 1374 1390 > 1375 1391 </File>
Note: See TracChangeset
for help on using the changeset viewer.