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 net::CookieMonster* cookie_monster, |
| 96 const net::CookieOptions& options, |
| 97 bool blocked_by_policy); |
94 virtual void OnCookieAccessed(const GURL& url, | 98 virtual void OnCookieAccessed(const GURL& url, |
95 const std::string& cookie_line, | 99 const std::string& cookie_line, |
96 const net::CookieOptions& options, | 100 const net::CookieOptions& options, |
97 bool blocked_by_policy); | 101 bool blocked_by_policy); |
98 virtual void OnIndexedDBAccessed(const GURL& url, | 102 virtual void OnIndexedDBAccessed(const GURL& url, |
99 const string16& description, | 103 const string16& description, |
100 bool blocked_by_policy); | 104 bool blocked_by_policy); |
101 virtual void OnLocalStorageAccessed(const GURL& url, | 105 virtual void OnLocalStorageAccessed(const GURL& url, |
102 DOMStorageType storage_type, | 106 DOMStorageType storage_type, |
103 bool blocked_by_policy); | 107 bool blocked_by_policy); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 181 |
178 // Stores whether the user can load blocked plugins on this page. | 182 // Stores whether the user can load blocked plugins on this page. |
179 bool load_plugins_link_enabled_; | 183 bool load_plugins_link_enabled_; |
180 | 184 |
181 Delegate* delegate_; | 185 Delegate* delegate_; |
182 | 186 |
183 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 187 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
184 }; | 188 }; |
185 | 189 |
186 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 190 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
OLD | NEW |