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_; |