| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class CannedBrowsingDataAppCacheHelper; | 22 class CannedBrowsingDataAppCacheHelper; |
| 23 class CannedBrowsingDataCookieHelper; | 23 class CannedBrowsingDataCookieHelper; |
| 24 class CannedBrowsingDataDatabaseHelper; | 24 class CannedBrowsingDataDatabaseHelper; |
| 25 class CannedBrowsingDataFileSystemHelper; | 25 class CannedBrowsingDataFileSystemHelper; |
| 26 class CannedBrowsingDataIndexedDBHelper; | 26 class CannedBrowsingDataIndexedDBHelper; |
| 27 class CannedBrowsingDataLocalStorageHelper; | 27 class CannedBrowsingDataLocalStorageHelper; |
| 28 class CookiesTreeModel; | 28 class CookiesTreeModel; |
| 29 class Profile; | 29 class Profile; |
| 30 | 30 |
| 31 namespace content { |
| 32 class RenderViewHost; |
| 33 } |
| 34 |
| 31 namespace net { | 35 namespace net { |
| 32 class CookieList; | 36 class CookieList; |
| 33 class CookieOptions; | 37 class CookieOptions; |
| 34 } | 38 } |
| 35 | 39 |
| 36 class TabSpecificContentSettings : public content::WebContentsObserver, | 40 class TabSpecificContentSettings : public content::WebContentsObserver, |
| 37 public content::NotificationObserver { | 41 public content::NotificationObserver { |
| 38 public: | 42 public: |
| 39 explicit TabSpecificContentSettings(content::WebContents* tab); | 43 explicit TabSpecificContentSettings(content::WebContents* tab); |
| 40 | 44 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // content::WebContentsObserver overrides. | 163 // content::WebContentsObserver overrides. |
| 160 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 164 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 161 virtual void DidNavigateMainFrame( | 165 virtual void DidNavigateMainFrame( |
| 162 const content::LoadCommittedDetails& details, | 166 const content::LoadCommittedDetails& details, |
| 163 const content::FrameNavigateParams& params) OVERRIDE; | 167 const content::FrameNavigateParams& params) OVERRIDE; |
| 164 virtual void DidStartProvisionalLoadForFrame( | 168 virtual void DidStartProvisionalLoadForFrame( |
| 165 int64 frame_id, | 169 int64 frame_id, |
| 166 bool is_main_frame, | 170 bool is_main_frame, |
| 167 const GURL& validated_url, | 171 const GURL& validated_url, |
| 168 bool is_error_page, | 172 bool is_error_page, |
| 169 RenderViewHost* render_view_host) OVERRIDE; | 173 content::RenderViewHost* render_view_host) OVERRIDE; |
| 170 virtual void AppCacheAccessed(const GURL& manifest_url, | 174 virtual void AppCacheAccessed(const GURL& manifest_url, |
| 171 bool blocked_by_policy) OVERRIDE; | 175 bool blocked_by_policy) OVERRIDE; |
| 172 | 176 |
| 173 // Message handlers. Public for testing. | 177 // Message handlers. Public for testing. |
| 174 void OnContentBlocked(ContentSettingsType type, | 178 void OnContentBlocked(ContentSettingsType type, |
| 175 const std::string& resource_identifier); | 179 const std::string& resource_identifier); |
| 176 | 180 |
| 177 // These methods are invoked on the UI thread by the static functions above. | 181 // These methods are invoked on the UI thread by the static functions above. |
| 178 // Public for testing. | 182 // Public for testing. |
| 179 void OnCookiesRead(const GURL& url, | 183 void OnCookiesRead(const GURL& url, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 285 |
| 282 // Stores whether the user can load blocked plugins on this page. | 286 // Stores whether the user can load blocked plugins on this page. |
| 283 bool load_plugins_link_enabled_; | 287 bool load_plugins_link_enabled_; |
| 284 | 288 |
| 285 content::NotificationRegistrar registrar_; | 289 content::NotificationRegistrar registrar_; |
| 286 | 290 |
| 287 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 291 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 288 }; | 292 }; |
| 289 | 293 |
| 290 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 294 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |