| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // Called when a specific file system in the current page was accessed. | 153 // Called when a specific file system in the current page was accessed. |
| 154 // If access was blocked due to the user's content settings, | 154 // If access was blocked due to the user's content settings, |
| 155 // |blocked_by_policy| should be true, and this function should invoke | 155 // |blocked_by_policy| should be true, and this function should invoke |
| 156 // OnContentBlocked. | 156 // OnContentBlocked. |
| 157 static void FileSystemAccessed(int render_process_id, | 157 static void FileSystemAccessed(int render_process_id, |
| 158 int render_frame_id, | 158 int render_frame_id, |
| 159 const GURL& url, | 159 const GURL& url, |
| 160 bool blocked_by_policy); | 160 bool blocked_by_policy); |
| 161 | 161 |
| 162 // Called when a specific file system in the current page was accessed. |
| 163 // If access was blocked due to the user's content settings, |
| 164 // |blocked_by_policy| should be true, and this function should invoke |
| 165 // OnContentBlocked. |
| 166 // This function will call a callback function to send an asynchronized |
| 167 // message. |
| 168 static void FileSystemAccessedAsyn( |
| 169 int routing_id, |
| 170 int render_process_id, |
| 171 int render_frame_id, |
| 172 const GURL& url, |
| 173 bool blocked_by_policy, |
| 174 base::Callback<void(int, int, bool)> Callbacks); |
| 175 |
| 162 // Resets the |content_blocked_| and |content_allowed_| arrays, except for | 176 // Resets the |content_blocked_| and |content_allowed_| arrays, except for |
| 163 // CONTENT_SETTINGS_TYPE_COOKIES related information. | 177 // CONTENT_SETTINGS_TYPE_COOKIES related information. |
| 164 void ClearBlockedContentSettingsExceptForCookies(); | 178 void ClearBlockedContentSettingsExceptForCookies(); |
| 165 | 179 |
| 166 // Resets all cookies related information. | 180 // Resets all cookies related information. |
| 167 void ClearCookieSpecificContentSettings(); | 181 void ClearCookieSpecificContentSettings(); |
| 168 | 182 |
| 169 // Clears the Geolocation settings. | 183 // Clears the Geolocation settings. |
| 170 void ClearGeolocationContentSettings(); | 184 void ClearGeolocationContentSettings(); |
| 171 | 185 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 431 |
| 418 // The devices to be displayed in the media bubble when the media stream | 432 // The devices to be displayed in the media bubble when the media stream |
| 419 // request is requesting certain specific devices. | 433 // request is requesting certain specific devices. |
| 420 std::string media_stream_requested_audio_device_; | 434 std::string media_stream_requested_audio_device_; |
| 421 std::string media_stream_requested_video_device_; | 435 std::string media_stream_requested_video_device_; |
| 422 | 436 |
| 423 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 437 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 424 }; | 438 }; |
| 425 | 439 |
| 426 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 440 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |