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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 // Called when an extension is installed, so that prefs get created. | 139 // Called when an extension is installed, so that prefs get created. |
140 // If |page_ordinal| is an invalid ordinal, then a page will be found | 140 // If |page_ordinal| is an invalid ordinal, then a page will be found |
141 // for the App. | 141 // for the App. |
142 void OnExtensionInstalled(const Extension* extension, | 142 void OnExtensionInstalled(const Extension* extension, |
143 Extension::State initial_state, | 143 Extension::State initial_state, |
144 const syncer::StringOrdinal& page_ordinal); | 144 const syncer::StringOrdinal& page_ordinal); |
145 | 145 |
146 // Called when an extension is uninstalled, so that prefs get cleaned up. | 146 // Called when an extension is uninstalled, so that prefs get cleaned up. |
147 void OnExtensionUninstalled(const std::string& extension_id, | 147 void OnExtensionUninstalled(const std::string& extension_id, |
148 const Extension::Location& location, | 148 const Manifest::Location& location, |
149 bool external_uninstall); | 149 bool external_uninstall); |
150 | 150 |
151 // Called to change the extension's state when it is enabled/disabled. | 151 // Called to change the extension's state when it is enabled/disabled. |
152 void SetExtensionState(const std::string& extension_id, Extension::State); | 152 void SetExtensionState(const std::string& extension_id, Extension::State); |
153 | 153 |
154 // Returns all installed extensions | 154 // Returns all installed extensions |
155 void GetExtensions(ExtensionIdList* out); | 155 void GetExtensions(ExtensionIdList* out); |
156 | 156 |
157 // Getter and setter for browser action visibility. | 157 // Getter and setter for browser action visibility. |
158 bool GetBrowserActionVisibility(const Extension* extension); | 158 bool GetBrowserActionVisibility(const Extension* extension); |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 scoped_refptr<ContentSettingsStore> content_settings_store_; | 650 scoped_refptr<ContentSettingsStore> content_settings_store_; |
651 | 651 |
652 scoped_ptr<TimeProvider> time_provider_; | 652 scoped_ptr<TimeProvider> time_provider_; |
653 | 653 |
654 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 654 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
655 }; | 655 }; |
656 | 656 |
657 } // namespace extensions | 657 } // namespace extensions |
658 | 658 |
659 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 659 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |