Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h

Issue 2747203002: Make prepareRequest() a separate callback of FetchContext (Closed)
Patch Set: addressed comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h
diff --git a/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h b/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h
index dd3d3cea695def9a244e5740e2794e3a99befde0..f5b0bbb903e1b565265a735487db96a65e62963e 100644
--- a/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h
+++ b/third_party/WebKit/Source/core/loader/appcache/ApplicationCacheHost.h
@@ -124,14 +124,16 @@ class ApplicationCacheHost final
void selectCacheWithoutManifest();
void selectCacheWithManifest(const KURL& manifestURL);
- void willStartLoadingMainResource(ResourceRequest&);
+ // Annotate request for ApplicationCache. This internally calls
+ // willStartLoadingMainResource if it's for frame resource or
+ // willStartLoadingResource for subresource requests.
+ void willStartLoading(ResourceRequest&);
+
void didReceiveResponseForMainResource(const ResourceResponse&);
void mainResourceDataReceived(const char* data, size_t length);
void finishedLoadingMainResource();
void failedLoadingMainResource();
- void willStartLoadingResource(ResourceRequest&);
-
Status getStatus() const;
bool update();
bool swapCache();
@@ -157,6 +159,9 @@ class ApplicationCacheHost final
private:
explicit ApplicationCacheHost(DocumentLoader*);
+ void willStartLoadingMainResource(ResourceRequest&);
+ void willStartLoadingResource(ResourceRequest&);
+
// WebApplicationCacheHostClient implementation
void didChangeCacheAssociation() final;
void notifyEventListener(WebApplicationCacheHost::EventID) final;

Powered by Google App Engine
This is Rietveld 408576698