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

Unified Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 1110323005: Expose SW accesses in "Cookies set by this page" UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile Created 5 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: 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,
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/content_settings/tab_specific_content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698