Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 320 // Returns true if extension |extension_id| currently controls the | 320 // Returns true if extension |extension_id| currently controls the |
| 321 // preference. | 321 // preference. |
| 322 bool DoesExtensionControlPref(const std::string& extension_id, | 322 bool DoesExtensionControlPref(const std::string& extension_id, |
| 323 const std::string& pref_key, | 323 const std::string& pref_key, |
| 324 bool incognito); | 324 bool incognito); |
| 325 | 325 |
| 326 // Returns true if there is an extension which controls the preference value | 326 // Returns true if there is an extension which controls the preference value |
| 327 // for |pref_key| *and* it is specific to incognito mode. | 327 // for |pref_key| *and* it is specific to incognito mode. |
| 328 bool HasIncognitoPrefValue(const std::string& pref_key); | 328 bool HasIncognitoPrefValue(const std::string& pref_key); |
| 329 | 329 |
| 330 // TODO | |
|
battre
2011/06/03 18:48:36
why TODO?
Bernhard Bauer
2011/06/03 20:34:28
As a reminder for me to add a comment, and it work
| |
| 331 void ClearIncognitoSessionOnlySettings(); | |
|
battre
2011/06/03 18:48:36
"ClearIncognitoSessionOnly***Content***Settings"?
Bernhard Bauer
2011/06/03 20:34:28
Done.
| |
| 332 | |
| 330 // Helper method to acquire the installation time of an extension. | 333 // Helper method to acquire the installation time of an extension. |
| 331 // Returns base::Time() if the installation time could not be parsed or | 334 // Returns base::Time() if the installation time could not be parsed or |
| 332 // found. | 335 // found. |
| 333 base::Time GetInstallTime(const std::string& extension_id) const; | 336 base::Time GetInstallTime(const std::string& extension_id) const; |
| 334 | 337 |
| 335 static void RegisterUserPrefs(PrefService* prefs); | 338 static void RegisterUserPrefs(PrefService* prefs); |
| 336 | 339 |
| 337 ExtensionContentSettingsStore* content_settings_store() { | 340 ExtensionContentSettingsStore* content_settings_store() { |
| 338 return content_settings_store_.get(); | 341 return content_settings_store_.get(); |
| 339 } | 342 } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 | 451 |
| 449 scoped_ptr<ExtensionContentSettingsStore> content_settings_store_; | 452 scoped_ptr<ExtensionContentSettingsStore> content_settings_store_; |
| 450 | 453 |
| 451 // The URLs of all of the toolstrips. | 454 // The URLs of all of the toolstrips. |
| 452 URLList shelf_order_; | 455 URLList shelf_order_; |
| 453 | 456 |
| 454 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 457 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 455 }; | 458 }; |
| 456 | 459 |
| 457 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 460 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |