| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 CookiesTreeModel* GetBlockedCookiesTreeModel(); | 84 CookiesTreeModel* GetBlockedCookiesTreeModel(); |
| 85 | 85 |
| 86 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } | 86 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } |
| 87 void set_load_plugins_link_enabled(bool enabled) { | 87 void set_load_plugins_link_enabled(bool enabled) { |
| 88 load_plugins_link_enabled_ = enabled; | 88 load_plugins_link_enabled_ = enabled; |
| 89 } | 89 } |
| 90 | 90 |
| 91 // RenderViewHostDelegate::ContentSettings implementation. | 91 // RenderViewHostDelegate::ContentSettings implementation. |
| 92 virtual void OnContentBlocked(ContentSettingsType type, | 92 virtual void OnContentBlocked(ContentSettingsType type, |
| 93 const std::string& resource_identifier); | 93 const std::string& resource_identifier); |
| 94 virtual void OnCookiesRead(const GURL& url, |
| 95 const net::CookieMonster::CookieList& cookie_list, |
| 96 bool blocked_by_policy); |
| 94 virtual void OnCookieAccessed(const GURL& url, | 97 virtual void OnCookieAccessed(const GURL& url, |
| 95 const std::string& cookie_line, | 98 const std::string& cookie_line, |
| 96 bool blocked_by_policy); | 99 bool blocked_by_policy); |
| 97 virtual void OnIndexedDBAccessed(const GURL& url, | 100 virtual void OnIndexedDBAccessed(const GURL& url, |
| 98 const string16& description, | 101 const string16& description, |
| 99 bool blocked_by_policy); | 102 bool blocked_by_policy); |
| 100 virtual void OnLocalStorageAccessed(const GURL& url, | 103 virtual void OnLocalStorageAccessed(const GURL& url, |
| 101 DOMStorageType storage_type, | 104 DOMStorageType storage_type, |
| 102 bool blocked_by_policy); | 105 bool blocked_by_policy); |
| 103 virtual void OnWebDatabaseAccessed(const GURL& url, | 106 virtual void OnWebDatabaseAccessed(const GURL& url, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 179 |
| 177 // Stores whether the user can load blocked plugins on this page. | 180 // Stores whether the user can load blocked plugins on this page. |
| 178 bool load_plugins_link_enabled_; | 181 bool load_plugins_link_enabled_; |
| 179 | 182 |
| 180 Delegate* delegate_; | 183 Delegate* delegate_; |
| 181 | 184 |
| 182 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 185 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 183 }; | 186 }; |
| 184 | 187 |
| 185 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 188 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |