Skip to content
  • andersca@apple.com's avatar
    Begin stubbing out a KeyedEncoder class in WebCore · 0a62cead
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124079
    
    Reviewed by Sam Weinig.
    
    Source/WebCore:
    
    * WebCore.exp.in:
    Add symbol needed by WebCore.
    
    * WebCore.xcodeproj/project.pbxproj:
    Add new header file.
    
    * history/HistoryItem.cpp:
    (WebCore::HistoryItem::encodeBackForwardTree):
    * history/HistoryItem.h:
    Add an encodeBackForwardTree overload that takes a KeyedEncoder object. Encode the version.
    
    * platform/KeyedCoding.h:
    Add a KeyedEncoder class that just has a single encodeUInt32 member function for now.
    
    Source/WebKit2:
    
    * Shared/KeyedEncoder.h: Removed.
    * Shared/cf/KeyedCodingValueCF.cpp: Removed.
    * Shared/cf/KeyedEncoder.cpp: Added.
    Remove old keyed encoders.
    
    (WebKit::createDictionary):
    Helper function to create a mutable dictionary.
    (WebKit::KeyedEncoder::KeyedEncoder):
    Create the root dictionary.
    
    (WebKit::KeyedEncoder::encodeUInt32):
    Create a CFNumberRef and add it to the dictionary.
    
    * Shared/cf/KeyedEncoder.h: Added.
    * WebKit2.xcodeproj/project.pbxproj:
    Add new files.
    
    * WebProcess/WebPage/WebBackForwardListProxy.cpp:
    (WebKit::updateBackForwardItem):
    Create a KeyedEncoder and encode the history tree.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0a62cead