| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 virtual ~TabSpecificContentSettings() {} | 43 virtual ~TabSpecificContentSettings() {} |
| 44 | 44 |
| 45 // Resets the |content_blocked_| and |content_accessed_| arrays, except for | 45 // Resets the |content_blocked_| and |content_accessed_| arrays, except for |
| 46 // CONTENT_SETTINGS_TYPE_COOKIES related information. | 46 // CONTENT_SETTINGS_TYPE_COOKIES related information. |
| 47 void ClearBlockedContentSettingsExceptForCookies(); | 47 void ClearBlockedContentSettingsExceptForCookies(); |
| 48 | 48 |
| 49 // Resets all cookies related information. | 49 // Resets all cookies related information. |
| 50 void ClearCookieSpecificContentSettings(); | 50 void ClearCookieSpecificContentSettings(); |
| 51 | 51 |
| 52 // Clears the Geolocation settings. |
| 53 void ClearGeolocationContentSettings(); |
| 54 |
| 52 // Changes the |content_blocked_| entry for popups. | 55 // Changes the |content_blocked_| entry for popups. |
| 53 void SetPopupsBlocked(bool blocked); | 56 void SetPopupsBlocked(bool blocked); |
| 54 | 57 |
| 55 // Updates Geolocation settings on navigation. | 58 // Updates Geolocation settings on navigation. |
| 56 void GeolocationDidNavigate( | 59 void GeolocationDidNavigate( |
| 57 const NavigationController::LoadCommittedDetails& details); | 60 const NavigationController::LoadCommittedDetails& details); |
| 58 | 61 |
| 59 // Returns whether a particular kind of content has been blocked for this | 62 // Returns whether a particular kind of content has been blocked for this |
| 60 // page. | 63 // page. |
| 61 bool IsContentBlocked(ContentSettingsType content_type) const; | 64 bool IsContentBlocked(ContentSettingsType content_type) const; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 168 |
| 166 // Stores whether the user can load blocked plugins on this page. | 169 // Stores whether the user can load blocked plugins on this page. |
| 167 bool load_plugins_link_enabled_; | 170 bool load_plugins_link_enabled_; |
| 168 | 171 |
| 169 Delegate* delegate_; | 172 Delegate* delegate_; |
| 170 | 173 |
| 171 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); | 174 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); |
| 172 }; | 175 }; |
| 173 | 176 |
| 174 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ | 177 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ |
| OLD | NEW |