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_; |