summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_group.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 13:10:21 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-09 13:10:21 +0000
commit035545f333d5f508bee18782784b17c3d6889924 (patch)
treebc7f79bb0f9aeb52bceca75741f0e1e68cb3228d /webkit/appcache/appcache_group.h
parentf16943a1cad260cdee0d20147ea947d9bff84d84 (diff)
downloadchromium_src-035545f333d5f508bee18782784b17c3d6889924.zip
chromium_src-035545f333d5f508bee18782784b17c3d6889924.tar.gz
chromium_src-035545f333d5f508bee18782784b17c3d6889924.tar.bz2
Indicate in the tab UI if appcache creation was blocked by privacy settings.
TEST=manual BUG=38362 Review URL: http://codereview.chromium.org/1600002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_group.h')
-rw-r--r--webkit/appcache/appcache_group.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/appcache/appcache_group.h b/webkit/appcache/appcache_group.h
index c1bb1fc..a811337 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.