Changeset 162981 in webkit


Ignore:
Timestamp:
Jan 28, 2014 4:39:42 PM (10 years ago)
Author:
andersca@apple.com
Message:

Add WebDocumentLoader, a WebCore::DocumentLoader subclass
https://bugs.webkit.org/show_bug.cgi?id=127817

Reviewed by Tim Horton.

We need a place to store navigation IDs, and since they are per document loader, putting them
in a DocumentLoader subclass seems like a good idea.

  • WebKit2.xcodeproj/project.pbxproj:
  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::createDocumentLoader):

  • WebProcess/WebPage/WebDocumentLoader.cpp: Added.

(WebKit::WebDocumentLoader::WebDocumentLoader):
(WebKit::WebDocumentLoader::setNavigationID):

  • WebProcess/WebPage/WebDocumentLoader.h: Added.

(WebKit::WebDocumentLoader::create):
(WebKit::WebDocumentLoader::navigationID):

Location:
trunk/Source/WebKit2
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r162980 r162981  
     12014-01-28  Anders Carlsson  <andersca@apple.com>
     2
     3        Add WebDocumentLoader, a WebCore::DocumentLoader subclass
     4        https://bugs.webkit.org/show_bug.cgi?id=127817
     5
     6        Reviewed by Tim Horton.
     7
     8        We need a place to store navigation IDs, and since they are per document loader, putting them
     9        in a DocumentLoader subclass seems like a good idea.
     10
     11        * WebKit2.xcodeproj/project.pbxproj:
     12        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     13        (WebKit::WebFrameLoaderClient::createDocumentLoader):
     14        * WebProcess/WebPage/WebDocumentLoader.cpp: Added.
     15        (WebKit::WebDocumentLoader::WebDocumentLoader):
     16        (WebKit::WebDocumentLoader::setNavigationID):
     17        * WebProcess/WebPage/WebDocumentLoader.h: Added.
     18        (WebKit::WebDocumentLoader::create):
     19        (WebKit::WebDocumentLoader::navigationID):
     20
    1212014-01-28  Anders Carlsson  <andersca@apple.com>
    222
  • trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

    r162959 r162981  
    180180                1A5B1C501898606F004FCF9B /* WKNavigation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A5B1C4E1898606F004FCF9B /* WKNavigation.mm */; };
    181181                1A5B1C511898606F004FCF9B /* WKNavigation.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A5B1C4F1898606F004FCF9B /* WKNavigation.h */; settings = {ATTRIBUTES = (Public, ); }; };
     182                1A5B1C5418987EDF004FCF9B /* WebDocumentLoader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A5B1C5218987EDF004FCF9B /* WebDocumentLoader.cpp */; };
     183                1A5B1C5518987EDF004FCF9B /* WebDocumentLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A5B1C5318987EDF004FCF9B /* WebDocumentLoader.h */; };
    182184                1A5E4DA412D3BD3D0099A2BB /* TextCheckerState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A5E4DA312D3BD3D0099A2BB /* TextCheckerState.h */; };
    183185                1A6420E412DCE2FF00CAAE2C /* ShareableBitmap.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A6420E212DCE2FF00CAAE2C /* ShareableBitmap.cpp */; };
     
    18081810                1A5B1C4E1898606F004FCF9B /* WKNavigation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WKNavigation.mm; sourceTree = "<group>"; };
    18091811                1A5B1C4F1898606F004FCF9B /* WKNavigation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKNavigation.h; sourceTree = "<group>"; };
     1812                1A5B1C5218987EDF004FCF9B /* WebDocumentLoader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebDocumentLoader.cpp; sourceTree = "<group>"; };
     1813                1A5B1C5318987EDF004FCF9B /* WebDocumentLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebDocumentLoader.h; sourceTree = "<group>"; };
    18101814                1A5E4DA312D3BD3D0099A2BB /* TextCheckerState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextCheckerState.h; sourceTree = "<group>"; };
    18111815                1A6420E212DCE2FF00CAAE2C /* ShareableBitmap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ShareableBitmap.cpp; sourceTree = "<group>"; };
     
    48434847                                51871B59127CB89D00F76232 /* WebContextMenu.cpp */,
    48444848                                51871B5A127CB89D00F76232 /* WebContextMenu.h */,
     4849                                1A5B1C5218987EDF004FCF9B /* WebDocumentLoader.cpp */,
     4850                                1A5B1C5318987EDF004FCF9B /* WebDocumentLoader.h */,
    48454851                                BC111ADC112F5B9300337BAB /* WebFrame.cpp */,
    48464852                                BC032D8910F437A00058C15A /* WebFrame.h */,
     
    60856091                                BC032DA910F437D10058C15A /* Arguments.h in Headers */,
    60866092                                BCEE966D112FAF57006BCC24 /* Attachment.h in Headers */,
     6093                                1A5B1C5518987EDF004FCF9B /* WebDocumentLoader.h in Headers */,
    60876094                                E1A31732134CEA6C007C9A4F /* AttributedString.h in Headers */,
    60886095                                51BA24441858EE3000EA2811 /* AsyncTask.h in Headers */,
     
    77317738                                1A24BF3A120896A600FBB059 /* SharedMemoryMac.cpp in Sources */,
    77327739                                5272B28A1406985D0096A5D0 /* StatisticsData.cpp in Sources */,
     7740                                1A5B1C5418987EDF004FCF9B /* WebDocumentLoader.cpp in Sources */,
    77337741                                51A4D5A916CAC4FF000E615E /* StatisticsRequest.cpp in Sources */,
    77347742                                1AD3306E16B1D991004F60E7 /* StorageAreaImpl.cpp in Sources */,
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r162951 r162981  
    3939#include "WebContextMessages.h"
    4040#include "WebCoreArgumentCoders.h"
     41#include "WebDocumentLoader.h"
    4142#include "WebErrors.h"
    4243#include "WebEvent.h"
     
    11331134PassRefPtr<DocumentLoader> WebFrameLoaderClient::createDocumentLoader(const ResourceRequest& request, const SubstituteData& data)
    11341135{
    1135     return DocumentLoader::create(request, data);
     1136    return WebDocumentLoader::create(request, data);
    11361137}
    11371138
Note: See TracChangeset for help on using the changeset viewer.