Changeset 118644 in webkit
- Timestamp:
- May 27, 2012, 9:22:47 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
loader/MainResourceLoader.cpp (modified) (3 diffs)
-
loader/MainResourceLoader.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r118643 r118644 1 2012-05-27 Benjamin Poulain <benjamin@webkit.org> 2 3 Minor code cleaning for the interface of MainResourceLoader 4 https://bugs.webkit.org/show_bug.cgi?id=87607 5 6 Reviewed by Darin Adler. 7 8 * loader/MainResourceLoader.cpp: 9 (WebCore::MainResourceLoader::MainResourceLoader): 10 (WebCore::MainResourceLoader::handleSubstituteDataLoadNow): 11 (WebCore::MainResourceLoader::handleSubstituteDataLoadSoon): 12 * loader/MainResourceLoader.h: 13 (MainResourceLoader): 14 -Add the OVERRIDE keyword for the methods inherited from ResourceLoader. 15 -Remove the useless declaration of handleDataLoad(ResourceRequest&), this method does not exist. 16 -Rename handleDataLoadNow() to handleSubstituteDataLoadNow() and make the method private. This should 17 only be used by handleSubstituteDataLoadSoon() and indirectly through the timer. 18 1 19 2012-05-27 Yoshifumi Inoue <yosin@chromium.org> 2 20 -
trunk/Source/WebCore/loader/MainResourceLoader.cpp
r118631 r118644 73 73 MainResourceLoader::MainResourceLoader(Frame* frame) 74 74 : ResourceLoader(frame, ResourceLoaderOptions(SendCallbacks, SniffContent, BufferData, AllowStoredCredentials, AskClientForCrossOriginCredentials, SkipSecurityCheck)) 75 , m_dataLoadTimer(this, &MainResourceLoader::handle DataLoadNow)75 , m_dataLoadTimer(this, &MainResourceLoader::handleSubstituteDataLoadNow) 76 76 , m_loadingMultipartContent(false) 77 77 , m_waitingForContentPolicy(false) … … 581 581 } 582 582 583 void MainResourceLoader::handle DataLoadNow(MainResourceLoaderTimer*)583 void MainResourceLoader::handleSubstituteDataLoadNow(MainResourceLoaderTimer*) 584 584 { 585 585 RefPtr<MainResourceLoader> protect(this); … … 614 614 startDataLoadTimer(); 615 615 else 616 handle DataLoadNow(0);616 handleSubstituteDataLoadNow(0); 617 617 } 618 618 -
trunk/Source/WebCore/loader/MainResourceLoader.h
r118631 r118644 56 56 57 57 void load(const ResourceRequest&, const SubstituteData&); 58 virtual void addData(const char*, int, bool allAtOnce) ;58 virtual void addData(const char*, int, bool allAtOnce) OVERRIDE; 59 59 60 virtual void setDefersLoading(bool) ;60 virtual void setDefersLoading(bool) OVERRIDE; 61 61 62 virtual void willSendRequest(ResourceRequest&, const ResourceResponse& redirectResponse) ;63 virtual void didReceiveResponse(const ResourceResponse&) ;64 virtual void didReceiveData(const char*, int, long long encodedDataLength, bool allAtOnce) ;65 virtual void didFinishLoading(double finishTime) ;66 virtual void didFail(const ResourceError&) ;62 virtual void willSendRequest(ResourceRequest&, const ResourceResponse& redirectResponse) OVERRIDE; 63 virtual void didReceiveResponse(const ResourceResponse&) OVERRIDE; 64 virtual void didReceiveData(const char*, int, long long encodedDataLength, bool allAtOnce) OVERRIDE; 65 virtual void didFinishLoading(double finishTime) OVERRIDE; 66 virtual void didFail(const ResourceError&) OVERRIDE; 67 67 68 68 #if HAVE(RUNLOOP_TIMER) … … 72 72 #endif 73 73 74 void handleDataLoadNow(MainResourceLoaderTimer*);75 76 74 bool isLoadingMultipartContent() const { return m_loadingMultipartContent; } 77 75 … … 79 77 MainResourceLoader(Frame*); 80 78 81 virtual void willCancel(const ResourceError&) ;82 virtual void didCancel(const ResourceError&) ;79 virtual void willCancel(const ResourceError&) OVERRIDE; 80 virtual void didCancel(const ResourceError&) OVERRIDE; 83 81 84 82 bool loadNow(ResourceRequest&); … … 86 84 void handleEmptyLoad(const KURL&, bool forURLScheme); 87 85 void handleSubstituteDataLoadSoon(const ResourceRequest&); 86 void handleSubstituteDataLoadNow(MainResourceLoaderTimer*); 88 87 89 88 void startDataLoadTimer(); 90 void handleDataLoad(ResourceRequest&);91 89 92 90 void receivedError(const ResourceError&);
Note:
See TracChangeset
for help on using the changeset viewer.