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

Unified Diff: webkit/appcache/appcache_host.h

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments (not all). Created 9 years, 4 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
Index: webkit/appcache/appcache_host.h
diff --git a/webkit/appcache/appcache_host.h b/webkit/appcache/appcache_host.h
index 0f8ac47bf443df2060b04c3e2cb6b53c9a34ac8e..ab9a456e81bb1494b7277e6293370084e95ad2c5 100644
--- a/webkit/appcache/appcache_host.h
+++ b/webkit/appcache/appcache_host.h
@@ -132,6 +132,8 @@ class AppCacheHost : public AppCacheStorage::Delegate,
!pending_selected_manifest_url_.is_empty();
}
+ const GURL& first_party_url() const { return first_party_url_; }
+
private:
Status GetStatus();
void LoadSelectedCache(int64 cache_id);
@@ -150,7 +152,6 @@ class AppCacheHost : public AppCacheStorage::Delegate,
void ObserveGroupBeingUpdated(AppCacheGroup* group);
// AppCacheGroup::UpdateObserver methods.
- virtual void OnContentBlocked(AppCacheGroup* group);
virtual void OnUpdateComplete(AppCacheGroup* group);
// Returns true if this host is for a dedicated worker context.
@@ -245,6 +246,9 @@ class AppCacheHost : public AppCacheStorage::Delegate,
// Used to inform the QuotaManager of what origins are currently in use.
GURL origin_in_use_;
+ // First party url to be used in policy checks.
+ GURL first_party_url_;
+
friend class AppCacheRequestHandlerTest;
friend class AppCacheUpdateJobTest;
FRIEND_TEST_ALL_PREFIXES(AppCacheTest, CleanupUnusedCache);

Powered by Google App Engine
This is Rietveld 408576698