| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } | 156 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } |
| 157 void set_load_plugins_link_enabled(bool enabled) { | 157 void set_load_plugins_link_enabled(bool enabled) { |
| 158 load_plugins_link_enabled_ = enabled; | 158 load_plugins_link_enabled_ = enabled; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // TabContentsObserver overrides. | 161 // TabContentsObserver overrides. |
| 162 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 162 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 163 virtual void DidNavigateMainFrame( | 163 virtual void DidNavigateMainFrame( |
| 164 const content::LoadCommittedDetails& details, | 164 const content::LoadCommittedDetails& details, |
| 165 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 165 const content::FrameNavigateParams& params) OVERRIDE; |
| 166 virtual void DidStartProvisionalLoadForFrame( | 166 virtual void DidStartProvisionalLoadForFrame( |
| 167 int64 frame_id, | 167 int64 frame_id, |
| 168 bool is_main_frame, | 168 bool is_main_frame, |
| 169 const GURL& validated_url, | 169 const GURL& validated_url, |
| 170 bool is_error_page, | 170 bool is_error_page, |
| 171 RenderViewHost* render_view_host) OVERRIDE; | 171 RenderViewHost* render_view_host) OVERRIDE; |
| 172 virtual void AppCacheAccessed(const GURL& manifest_url, | 172 virtual void AppCacheAccessed(const GURL& manifest_url, |
| 173 bool blocked_by_policy) OVERRIDE; | 173 bool blocked_by_policy) OVERRIDE; |
| 174 | 174 |
| 175 // Message handlers. Public for testing. | 175 // Message handlers. Public for testing. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 // Stores whether the user can load blocked plugins on this page. | 284 // Stores whether the user can load blocked plugins on this page. |
| 285 bool load_plugins_link_enabled_; | 285 bool load_plugins_link_enabled_; |
| 286 | 286 |
| 287 content::NotificationRegistrar registrar_; | 287 content::NotificationRegistrar registrar_; |
| 288 | 288 |
| 289 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 289 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 290 }; | 290 }; |
| 291 | 291 |
| 292 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 292 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |