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

Unified Diff: webkit/appcache/appcache.h

Issue 8949001: Fix some loose ends around recently introduced AppCache INTERCEPT namespaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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 | « no previous file | webkit/appcache/appcache.cc » ('j') | webkit/appcache/appcache_storage.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache.h
===================================================================
--- webkit/appcache/appcache.h (revision 116156)
+++ webkit/appcache/appcache.h (working copy)
@@ -60,8 +60,13 @@
const EntryMap& entries() const { return entries_; }
- // Returns the URL of the resource used as the fallback for 'namespace_url'.
- GURL GetFallbackEntryUrl(const GURL& namespace_url) const;
+ // Returns the URL of the resource used as entry for 'namespace_url'.
+ GURL GetFallbackEntryUrl(const GURL& namespace_url) const {
+ return GetNamespaceEntryUrl(fallback_namespaces_, namespace_url);
+ }
+ GURL GetInterceptEntryUrl(const GURL& namespace_url) const {
+ return GetNamespaceEntryUrl(intercept_namespaces_, namespace_url);
+ }
AppCacheHosts& associated_hosts() { return associated_hosts_; }
@@ -107,8 +112,9 @@
std::vector<AppCacheDatabase::OnlineWhiteListRecord>* whitelists);
bool FindResponseForRequest(const GURL& url,
- AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
- GURL* found_fallback_namespace, bool* found_network_namespace);
+ AppCacheEntry* found_entry, GURL* found_intercept_namespace,
+ AppCacheEntry* found_fallback_entry, GURL* found_fallback_namespace,
+ bool* found_network_namespace);
// Populates the 'infos' vector with an element per entry in the appcache.
void ToResourceInfoVector(AppCacheResourceInfoVector* infos) const;
@@ -139,6 +145,9 @@
const Namespace* FindNamespace(const NamespaceVector& namespaces,
const GURL& url);
+ GURL GetNamespaceEntryUrl(const NamespaceVector& namespaces,
+ const GURL& namespace_url) const;
+
// Use AppCacheHost::Associate*Cache() to manipulate host association.
void AssociateHost(AppCacheHost* host) {
associated_hosts_.insert(host);
« no previous file with comments | « no previous file | webkit/appcache/appcache.cc » ('j') | webkit/appcache/appcache_storage.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698