Index: chrome/browser/content_settings/tab_specific_content_settings.h |
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.h b/chrome/browser/content_settings/tab_specific_content_settings.h |
index 8851b8945d7f932d3733e46b0513a708fd6d0a80..0bc6ec6c59e9008c7da71fe698b0f3ca34461b58 100644 |
--- a/chrome/browser/content_settings/tab_specific_content_settings.h |
+++ b/chrome/browser/content_settings/tab_specific_content_settings.h |
@@ -151,6 +151,15 @@ class TabSpecificContentSettings |
const GURL& url, |
bool blocked_by_policy); |
+ // Called when a specific Service Worker scope was accessed. |
+ // If access was blocked due to the user's content settings, |
+ // |blocked_by_policy| should be true, and this function should invoke |
+ // OnContentBlocked. |
+ static void ServiceWorkerAccessed(int render_process_id, |
+ int render_frame_id, |
+ const GURL& scope, |
+ bool blocked_by_policy); |
+ |
// Resets the |content_blocked_| and |content_allowed_| arrays, except for |
// CONTENT_SETTINGS_TYPE_COOKIES related information. |
// TODO(vabr): Only public for tests. Move to a test client. |
@@ -316,6 +325,7 @@ class TabSpecificContentSettings |
void OnLocalStorageAccessed(const GURL& url, |
bool local, |
bool blocked_by_policy); |
+ void OnServiceWorkerAccessed(const GURL& scope, bool blocked_by_policy); |
void OnWebDatabaseAccessed(const GURL& url, |
const base::string16& name, |
const base::string16& display_name, |