OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 const std::string& pref_key, | 416 const std::string& pref_key, |
417 bool* from_incognito); | 417 bool* from_incognito); |
418 | 418 |
419 // Returns true if there is an extension which controls the preference value | 419 // Returns true if there is an extension which controls the preference value |
420 // for |pref_key| *and* it is specific to incognito mode. | 420 // for |pref_key| *and* it is specific to incognito mode. |
421 bool HasIncognitoPrefValue(const std::string& pref_key); | 421 bool HasIncognitoPrefValue(const std::string& pref_key); |
422 | 422 |
423 // Clears incognito session-only content settings for all extensions. | 423 // Clears incognito session-only content settings for all extensions. |
424 void ClearIncognitoSessionOnlyContentSettings(); | 424 void ClearIncognitoSessionOnlyContentSettings(); |
425 | 425 |
| 426 // Returns the creation flags mask for the extension. |
| 427 int GetCreationFlags(const std::string& extension_id) const; |
| 428 |
426 // Returns true if the extension was installed from the Chrome Web Store. | 429 // Returns true if the extension was installed from the Chrome Web Store. |
427 bool IsFromWebStore(const std::string& extension_id) const; | 430 bool IsFromWebStore(const std::string& extension_id) const; |
428 | 431 |
429 // Returns true if the extension was installed from an App generated from a | 432 // Returns true if the extension was installed from an App generated from a |
430 // bookmark. | 433 // bookmark. |
431 bool IsFromBookmark(const std::string& extension_id) const; | 434 bool IsFromBookmark(const std::string& extension_id) const; |
432 | 435 |
433 // Returns true if the extension was installed as a default app. | 436 // Returns true if the extension was installed as a default app. |
434 bool WasInstalledByDefault(const std::string& extension_id) const; | 437 bool WasInstalledByDefault(const std::string& extension_id) const; |
435 | 438 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 scoped_ptr<ExtensionSorting> extension_sorting_; | 572 scoped_ptr<ExtensionSorting> extension_sorting_; |
570 | 573 |
571 scoped_refptr<ContentSettingsStore> content_settings_store_; | 574 scoped_refptr<ContentSettingsStore> content_settings_store_; |
572 | 575 |
573 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 576 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
574 }; | 577 }; |
575 | 578 |
576 } // namespace extensions | 579 } // namespace extensions |
577 | 580 |
578 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 581 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |