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

Unified Diff: webkit/appcache/appcache_group.h

Issue 192043: AppCacheHost cache selection algorithm (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_group.h
===================================================================
--- webkit/appcache/appcache_group.h (revision 26254)
+++ webkit/appcache/appcache_group.h (working copy)
@@ -13,6 +13,7 @@
namespace appcache {
class AppCache;
+class AppCacheHost;
class AppCacheService;
// Collection of application caches identified by the same manifest URL.
@@ -45,6 +46,22 @@
// cannot be removed as long as the group is still in use.
bool RemoveCache(AppCache* cache);
+ // Starts an update via update() javascript API.
+ void StartUpdate() {
+ StartUpdateWithHost(NULL);
+ }
+
+ // Starts an update for a doc loaded from an application cache.
+ void StartUpdateWithHost(AppCacheHost* host) {
+ StartUpdateWithNewMasterEntry(host, GURL::EmptyGURL());
+ }
+
+ // Starts an update for a doc loaded using HTTP GET or equivalent with
+ // an <html> tag manifest attribute value that matches this group's
+ // manifest url.
+ void StartUpdateWithNewMasterEntry(AppCacheHost* host,
+ const GURL& new_master_resource);
+
private:
GURL manifest_url_;
UpdateStatus update_status_;
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698