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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 CookiesTreeModel* GetBlockedCookiesTreeModel(); | 89 CookiesTreeModel* GetBlockedCookiesTreeModel(); |
90 | 90 |
91 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } | 91 bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } |
92 void set_load_plugins_link_enabled(bool enabled) { | 92 void set_load_plugins_link_enabled(bool enabled) { |
93 load_plugins_link_enabled_ = enabled; | 93 load_plugins_link_enabled_ = enabled; |
94 } | 94 } |
95 | 95 |
96 // RenderViewHostDelegate::ContentSettings implementation. | 96 // RenderViewHostDelegate::ContentSettings implementation. |
97 virtual void OnContentBlocked(ContentSettingsType type, | 97 virtual void OnContentBlocked(ContentSettingsType type, |
98 const std::string& resource_identifier); | 98 const std::string& resource_identifier); |
99 virtual void OnCookieAccessed(const GURL& url, | 99 virtual void OnCookiesRead(const GURL& url, |
100 const std::string& cookie_line, | 100 const net::CookieList& cookie_list, |
101 const net::CookieOptions& options, | 101 bool blocked_by_policy); |
102 bool blocked_by_policy); | 102 virtual void OnCookieChanged(const GURL& url, |
| 103 const std::string& cookie_line, |
| 104 const net::CookieOptions& options, |
| 105 bool blocked_by_policy); |
103 virtual void OnIndexedDBAccessed(const GURL& url, | 106 virtual void OnIndexedDBAccessed(const GURL& url, |
104 const string16& description, | 107 const string16& description, |
105 bool blocked_by_policy); | 108 bool blocked_by_policy); |
106 virtual void OnLocalStorageAccessed(const GURL& url, | 109 virtual void OnLocalStorageAccessed(const GURL& url, |
107 DOMStorageType storage_type, | 110 DOMStorageType storage_type, |
108 bool blocked_by_policy); | 111 bool blocked_by_policy); |
109 virtual void OnWebDatabaseAccessed(const GURL& url, | 112 virtual void OnWebDatabaseAccessed(const GURL& url, |
110 const string16& name, | 113 const string16& name, |
111 const string16& display_name, | 114 const string16& display_name, |
112 unsigned long estimated_size, | 115 unsigned long estimated_size, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 188 |
186 // Stores whether the user can load blocked plugins on this page. | 189 // Stores whether the user can load blocked plugins on this page. |
187 bool load_plugins_link_enabled_; | 190 bool load_plugins_link_enabled_; |
188 | 191 |
189 Delegate* delegate_; | 192 Delegate* delegate_; |
190 | 193 |
191 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 194 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
192 }; | 195 }; |
193 | 196 |
194 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 197 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
OLD | NEW |