OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 const net::CookieOptions& options, | 111 const net::CookieOptions& options, |
112 bool blocked_by_policy); | 112 bool blocked_by_policy); |
113 | 113 |
114 // Called when a specific Web database in the current page was accessed. If | 114 // Called when a specific Web database in the current page was accessed. If |
115 // access was blocked due to the user's content settings, | 115 // access was blocked due to the user's content settings, |
116 // |blocked_by_policy| should be true, and this function should invoke | 116 // |blocked_by_policy| should be true, and this function should invoke |
117 // OnContentBlocked. | 117 // OnContentBlocked. |
118 static void WebDatabaseAccessed(int render_process_id, | 118 static void WebDatabaseAccessed(int render_process_id, |
119 int render_view_id, | 119 int render_view_id, |
120 const GURL& url, | 120 const GURL& url, |
121 const string16& name, | 121 const base::string16& name, |
122 const string16& display_name, | 122 const base::string16& display_name, |
123 bool blocked_by_policy); | 123 bool blocked_by_policy); |
124 | 124 |
125 // Called when a specific DOM storage area in the current page was | 125 // Called when a specific DOM storage area in the current page was |
126 // accessed. If access was blocked due to the user's content settings, | 126 // accessed. If access was blocked due to the user's content settings, |
127 // |blocked_by_policy| should be true, and this function should invoke | 127 // |blocked_by_policy| should be true, and this function should invoke |
128 // OnContentBlocked. | 128 // OnContentBlocked. |
129 static void DOMStorageAccessed(int render_process_id, | 129 static void DOMStorageAccessed(int render_process_id, |
130 int render_view_id, | 130 int render_view_id, |
131 const GURL& url, | 131 const GURL& url, |
132 bool local, | 132 bool local, |
133 bool blocked_by_policy); | 133 bool blocked_by_policy); |
134 | 134 |
135 // Called when a specific indexed db factory in the current page was | 135 // Called when a specific indexed db factory in the current page was |
136 // accessed. If access was blocked due to the user's content settings, | 136 // accessed. If access was blocked due to the user's content settings, |
137 // |blocked_by_policy| should be true, and this function should invoke | 137 // |blocked_by_policy| should be true, and this function should invoke |
138 // OnContentBlocked. | 138 // OnContentBlocked. |
139 static void IndexedDBAccessed(int render_process_id, | 139 static void IndexedDBAccessed(int render_process_id, |
140 int render_view_id, | 140 int render_view_id, |
141 const GURL& url, | 141 const GURL& url, |
142 const string16& description, | 142 const base::string16& description, |
143 bool blocked_by_policy); | 143 bool blocked_by_policy); |
144 | 144 |
145 // Called when a specific file system in the current page was accessed. | 145 // Called when a specific file system in the current page was accessed. |
146 // If access was blocked due to the user's content settings, | 146 // If access was blocked due to the user's content settings, |
147 // |blocked_by_policy| should be true, and this function should invoke | 147 // |blocked_by_policy| should be true, and this function should invoke |
148 // OnContentBlocked. | 148 // OnContentBlocked. |
149 static void FileSystemAccessed(int render_process_id, | 149 static void FileSystemAccessed(int render_process_id, |
150 int render_view_id, | 150 int render_view_id, |
151 const GURL& url, | 151 const GURL& url, |
152 bool blocked_by_policy); | 152 bool blocked_by_policy); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 const net::CookieList& cookie_list, | 305 const net::CookieList& cookie_list, |
306 bool blocked_by_policy); | 306 bool blocked_by_policy); |
307 void OnCookieChanged(const GURL& url, | 307 void OnCookieChanged(const GURL& url, |
308 const GURL& first_party_url, | 308 const GURL& first_party_url, |
309 const std::string& cookie_line, | 309 const std::string& cookie_line, |
310 const net::CookieOptions& options, | 310 const net::CookieOptions& options, |
311 bool blocked_by_policy); | 311 bool blocked_by_policy); |
312 void OnFileSystemAccessed(const GURL& url, | 312 void OnFileSystemAccessed(const GURL& url, |
313 bool blocked_by_policy); | 313 bool blocked_by_policy); |
314 void OnIndexedDBAccessed(const GURL& url, | 314 void OnIndexedDBAccessed(const GURL& url, |
315 const string16& description, | 315 const base::string16& description, |
316 bool blocked_by_policy); | 316 bool blocked_by_policy); |
317 void OnLocalStorageAccessed(const GURL& url, | 317 void OnLocalStorageAccessed(const GURL& url, |
318 bool local, | 318 bool local, |
319 bool blocked_by_policy); | 319 bool blocked_by_policy); |
320 void OnWebDatabaseAccessed(const GURL& url, | 320 void OnWebDatabaseAccessed(const GURL& url, |
321 const string16& name, | 321 const base::string16& name, |
322 const string16& display_name, | 322 const base::string16& display_name, |
323 bool blocked_by_policy); | 323 bool blocked_by_policy); |
324 void OnGeolocationPermissionSet(const GURL& requesting_frame, | 324 void OnGeolocationPermissionSet(const GURL& requesting_frame, |
325 bool allowed); | 325 bool allowed); |
326 #if defined(OS_ANDROID) | 326 #if defined(OS_ANDROID) |
327 void OnProtectedMediaIdentifierPermissionSet(const GURL& requesting_frame, | 327 void OnProtectedMediaIdentifierPermissionSet(const GURL& requesting_frame, |
328 bool allowed); | 328 bool allowed); |
329 #endif | 329 #endif |
330 | 330 |
331 // This method is called to update the status about the microphone and | 331 // This method is called to update the status about the microphone and |
332 // camera stream access. |request_permissions| contains a list of requested | 332 // camera stream access. |request_permissions| contains a list of requested |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 // The devices to be displayed in the media bubble when the media stream | 420 // The devices to be displayed in the media bubble when the media stream |
421 // request is requesting certain specific devices. | 421 // request is requesting certain specific devices. |
422 std::string media_stream_requested_audio_device_; | 422 std::string media_stream_requested_audio_device_; |
423 std::string media_stream_requested_video_device_; | 423 std::string media_stream_requested_video_device_; |
424 | 424 |
425 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 425 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
426 }; | 426 }; |
427 | 427 |
428 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 428 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
OLD | NEW |