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

Unified Diff: webkit/browser/appcache/appcache_group.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_executable_handler.cc ('k') | webkit/browser/appcache/appcache_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/appcache/appcache_group.h
diff --git a/webkit/browser/appcache/appcache_group.h b/webkit/browser/appcache/appcache_group.h
index 82f33ef041add65a5d2e70c6a562dca9dc149368..58f24f3ce3755f47a1d8384b187db071e1583c8e 100644
--- a/webkit/browser/appcache/appcache_group.h
+++ b/webkit/browser/appcache/appcache_group.h
@@ -15,6 +15,7 @@
#include "base/observer_list.h"
#include "base/time/time.h"
#include "url/gurl.h"
+#include "webkit/browser/appcache/appcache.h"
#include "webkit/browser/webkit_storage_browser_export.h"
namespace appcache {
@@ -24,6 +25,7 @@ class AppCacheHost;
class AppCacheStorage;
class AppCacheUpdateJob;
class HostObserver;
+struct Manifest;
// Collection of application caches identified by the same manifest URL.
// A group exists as long as it is in use by a host or is being updated.
@@ -77,6 +79,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheGroup
StartUpdateWithHost(NULL);
}
+ void StartUpdateWithManifest(const Manifest& manifest);
+
// Starts an update for a doc loaded from an application cache.
void StartUpdateWithHost(AppCacheHost* host) {
StartUpdateWithNewMasterEntry(host, GURL());
@@ -91,6 +95,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheGroup
// Cancels an update if one is running.
void CancelUpdate();
+ // Hackery for registerController
+ void StartUpdateWithFakeManifest(Manifest* manifest);
+ bool IsFakeNavControllerGroup() const {
+ return HasCache() && !newest_complete_cache()->GetEntry(manifest_url()) &&
+ (newest_complete_cache()->entries().size() == 1u);
+ }
+
private:
class HostObserver;
« no previous file with comments | « webkit/browser/appcache/appcache_executable_handler.cc ('k') | webkit/browser/appcache/appcache_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698