| 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 24 matching lines...) Expand all Loading... |
| 35 // unit tests only. | 35 // unit tests only. |
| 36 virtual void OnContentSettingsAccessed(bool content_was_blocked) = 0; | 36 virtual void OnContentSettingsAccessed(bool content_was_blocked) = 0; |
| 37 | 37 |
| 38 virtual ~Delegate() {} | 38 virtual ~Delegate() {} |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 TabSpecificContentSettings(Delegate* delegate, Profile* profile); | 41 TabSpecificContentSettings(Delegate* delegate, Profile* profile); |
| 42 | 42 |
| 43 virtual ~TabSpecificContentSettings() {} | 43 virtual ~TabSpecificContentSettings() {} |
| 44 | 44 |
| 45 // Resets the |content_blocked_| array and stored cookies. | 45 // Resets the |content_blocked_| and |content_accessed_| arrays, except for |
| 46 void ClearBlockedContentSettings(); | 46 // CONTENT_SETTINGS_TYPE_COOKIES related information. |
| 47 void ClearBlockedContentSettingsExceptForCookies(); |
| 48 |
| 49 // Resets all cookies related information. |
| 50 void ClearCookieSpecificContentSettings(); |
| 47 | 51 |
| 48 // Changes the |content_blocked_| entry for popups. | 52 // Changes the |content_blocked_| entry for popups. |
| 49 void SetPopupsBlocked(bool blocked); | 53 void SetPopupsBlocked(bool blocked); |
| 50 | 54 |
| 51 // Updates Geolocation settings on navigation. | 55 // Updates Geolocation settings on navigation. |
| 52 void GeolocationDidNavigate( | 56 void GeolocationDidNavigate( |
| 53 const NavigationController::LoadCommittedDetails& details); | 57 const NavigationController::LoadCommittedDetails& details); |
| 54 | 58 |
| 55 // Returns whether a particular kind of content has been blocked for this | 59 // Returns whether a particular kind of content has been blocked for this |
| 56 // page. | 60 // page. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 153 |
| 150 // Stores whether the user can load blocked plugins on this page. | 154 // Stores whether the user can load blocked plugins on this page. |
| 151 bool load_plugins_link_enabled_; | 155 bool load_plugins_link_enabled_; |
| 152 | 156 |
| 153 Delegate* delegate_; | 157 Delegate* delegate_; |
| 154 | 158 |
| 155 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 159 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 156 }; | 160 }; |
| 157 | 161 |
| 158 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 162 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |