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

Unified Diff: webkit/appcache/appcache_host.h

Issue 3529009: Fix http/tests/appcache/foreign-fallback.html (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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: webkit/appcache/appcache_host.h
===================================================================
--- webkit/appcache/appcache_host.h (revision 64524)
+++ webkit/appcache/appcache_host.h (working copy)
@@ -90,6 +90,10 @@
// Used to ensure that a loaded appcache survives a frame navigation.
void LoadMainResourceCache(int64 cache_id);
+ // Used to notify the host that a fallback resource is being delivered as
+ // the main resource of the page and to provide its url.
+ void NotifyMainResourceFallback(const GURL& fallback_url);
+
// Used to notify the host that the main resource was blocked by a policy. To
// work properly, this method needs to by invoked prior to cache selection.
void NotifyMainResourceBlocked(const GURL& manifest_url);
@@ -198,6 +202,10 @@
SwapCacheCallback* pending_swap_cache_callback_;
void* pending_callback_param_;
+ // True if a fallback resource was delivered as the main resource.
+ bool main_resource_was_fallback_;
+ GURL fallback_url_;
+
// True if requests for this host were blocked by a policy.
bool main_resource_blocked_;
GURL blocked_manifest_url_;

Powered by Google App Engine
This is Rietveld 408576698