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

Unified Diff: webkit/appcache/appcache_group.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_group.h
diff --git a/webkit/appcache/appcache_group.h b/webkit/appcache/appcache_group.h
index c1bb1fcf651424be14b6ce616b0582943da8b945..a8113374e5aa659314374a6ef5ac432ce1c73cfc 100644
--- a/webkit/appcache/appcache_group.h
+++ b/webkit/appcache/appcache_group.h
@@ -30,9 +30,12 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
class UpdateObserver {
public:
+ // Called if access to the appcache was blocked by a policy.
+ virtual void OnContentBlocked(AppCacheGroup* group) = 0;
+
// Called just after an appcache update has completed.
virtual void OnUpdateComplete(AppCacheGroup* group) = 0;
- virtual ~UpdateObserver() { }
+ virtual ~UpdateObserver() {}
};
enum UpdateStatus {
@@ -105,6 +108,8 @@ class AppCacheGroup : public base::RefCounted<AppCacheGroup> {
AppCacheUpdateJob* update_job() { return update_job_; }
void SetUpdateStatus(UpdateStatus status);
+ void NotifyContentBlocked();
+
const Caches& old_caches() const { return old_caches_; }
// Update cannot be processed at this time. Queue it for a later run.

Powered by Google App Engine
This is Rietveld 408576698