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

Unified Diff: webkit/appcache/appcache_host.h

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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 bb3ef49fefe386abde47e17c54ca0a2a7ddf1eae..0c85eae9c139fdbcf93a3ab08e5391bc717757a3 100644
--- a/webkit/appcache/appcache_host.h
+++ b/webkit/appcache/appcache_host.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -83,6 +83,9 @@ class AppCacheHost : public AppCacheStorage::Delegate,
// Used to ensure that a loaded appcache survives a frame navigation.
void LoadMainResourceCache(int64 cache_id);
+ // Used to notify the host that a request was blocked by a policy.
michaeln 2010/04/08 18:17:42 Maybe update the comment to say that the main reso
jochen (gone - plz use gerrit) 2010/04/09 15:44:47 Done.
+ void NotifyContentBlocked();
+
// Used by the update job to keep track of which hosts are associated
// with which pending master entries.
const GURL& pending_master_entry_url() const {
@@ -116,7 +119,8 @@ class AppCacheHost : public AppCacheStorage::Delegate,
void ObserveGroupBeingUpdated(AppCacheGroup* group);
- // AppCacheGroup::UpdateObserver method
+ // AppCacheGroup::UpdateObserver methods.
+ virtual void OnContentBlocked(AppCacheGroup* group);
virtual void OnUpdateComplete(AppCacheGroup* group);
// Identifies the corresponding appcache host in the child process.
@@ -169,6 +173,9 @@ class AppCacheHost : public AppCacheStorage::Delegate,
SwapCacheCallback* pending_swap_cache_callback_;
void* pending_callback_param_;
+ // True if requests for this host were blocked by a policy.
+ bool content_blocked_;
+
// List of objects observing us.
ObserverList<Observer> observers_;

Powered by Google App Engine
This is Rietveld 408576698