| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/geolocation/geolocation_settings_state.h" | 10 #include "chrome/browser/geolocation/geolocation_settings_state.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | 162 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 163 virtual void DidStartProvisionalLoadForFrame( | 163 virtual void DidStartProvisionalLoadForFrame( |
| 164 int64 frame_id, | 164 int64 frame_id, |
| 165 bool is_main_frame, | 165 bool is_main_frame, |
| 166 const GURL& validated_url, | 166 const GURL& validated_url, |
| 167 bool is_error_page, | 167 bool is_error_page, |
| 168 RenderViewHost* render_view_host) OVERRIDE; | 168 RenderViewHost* render_view_host) OVERRIDE; |
| 169 | 169 |
| 170 // Message handlers. Public for testing. | 170 // Message handlers. Public for testing. |
| 171 void OnContentBlocked(ContentSettingsType type, | 171 void OnContentBlocked(ContentSettingsType type, |
| 172 const std::string& resource_identifier); | 172 const std::string& resource_identifier, |
| 173 ContentSetting setting); |
| 173 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 174 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 174 | 175 |
| 175 // These methods are invoked on the UI thread by the static functions above. | 176 // These methods are invoked on the UI thread by the static functions above. |
| 176 // Public for testing. | 177 // Public for testing. |
| 177 void OnCookiesRead(const GURL& url, | 178 void OnCookiesRead(const GURL& url, |
| 178 const net::CookieList& cookie_list, | 179 const net::CookieList& cookie_list, |
| 179 bool blocked_by_policy); | 180 bool blocked_by_policy); |
| 180 void OnCookieChanged(const GURL& url, | 181 void OnCookieChanged(const GURL& url, |
| 181 const std::string& cookie_line, | 182 const std::string& cookie_line, |
| 182 const net::CookieOptions& options, | 183 const net::CookieOptions& options, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 278 |
| 278 // Stores whether the user can load blocked plugins on this page. | 279 // Stores whether the user can load blocked plugins on this page. |
| 279 bool load_plugins_link_enabled_; | 280 bool load_plugins_link_enabled_; |
| 280 | 281 |
| 281 NotificationRegistrar registrar_; | 282 NotificationRegistrar registrar_; |
| 282 | 283 |
| 283 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 284 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 287 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |