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

Unified Diff: webkit/browser/appcache/appcache_host.h

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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
« no previous file with comments | « webkit/browser/appcache/appcache_group.cc ('k') | webkit/browser/appcache/appcache_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/appcache/appcache_host.h
diff --git a/webkit/browser/appcache/appcache_host.h b/webkit/browser/appcache/appcache_host.h
index 4242bc16ad1e1dce02b17b2ea1c0468e9348334c..092ead53b365b287a4aeb18fea15cc936cf03c8e 100644
--- a/webkit/browser/appcache/appcache_host.h
+++ b/webkit/browser/appcache/appcache_host.h
@@ -26,6 +26,7 @@ namespace appcache {
class AppCache;
class AppCacheFrontend;
class AppCacheRequestHandler;
+struct Manifest;
typedef base::Callback<void(Status, void*)> GetStatusCallback;
typedef base::Callback<void(bool, void*)> StartUpdateCallback;
@@ -72,6 +73,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheHost
void* callback_param);
void SwapCacheWithCallback(const SwapCacheCallback& callback,
void* callback_param);
+ void RegisterController(const GURL& document_url,
+ const string16& pattern,
+ const GURL& script_url);
+ void UnregisterController(const GURL& document_url,
+ const string16& pattern);
// Called prior to the main resource load. When the system contains multiple
// candidates for a main resource load, the appcache preferred by the host
@@ -170,6 +176,9 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheHost
void ObserveGroupBeingUpdated(AppCacheGroup* group);
+ void OnControllerGroupLoaded(AppCacheGroup* group);
+ void OnControllerUpdateComplete(AppCacheGroup* group);
+
// AppCacheGroup::UpdateObserver methods.
virtual void OnUpdateComplete(AppCacheGroup* group) OVERRIDE;
@@ -268,6 +277,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheHost
// First party url to be used in policy checks.
GURL first_party_url_;
+ // Controller support
+ string16 controller_pattern_;
+ GURL controller_script_url_;
+ GURL controller_manifest_url_; // constructed
+ scoped_refptr<AppCacheGroup> controller_group_;
+ scoped_refptr<AppCache> controller_cache_;
+
friend class AppCacheRequestHandlerTest;
friend class AppCacheUpdateJobTest;
FRIEND_TEST_ALL_PREFIXES(AppCacheTest, CleanupUnusedCache);
« no previous file with comments | « webkit/browser/appcache/appcache_group.cc ('k') | webkit/browser/appcache/appcache_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698