| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 LAUNCH_FULLSCREEN, | 61 LAUNCH_FULLSCREEN, |
| 62 LAUNCH_WINDOW, | 62 LAUNCH_WINDOW, |
| 63 | 63 |
| 64 // Launch an app in the in the way a click on the NTP would, | 64 // Launch an app in the in the way a click on the NTP would, |
| 65 // if no user pref were set. Update this constant to change | 65 // if no user pref were set. Update this constant to change |
| 66 // the default for the NTP and chrome.management.launchApp(). | 66 // the default for the NTP and chrome.management.launchApp(). |
| 67 LAUNCH_DEFAULT = LAUNCH_REGULAR | 67 LAUNCH_DEFAULT = LAUNCH_REGULAR |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // Does not assume ownership of |prefs| and |incognito_prefs|. | 70 // Does not assume ownership of |prefs| and |incognito_prefs|. |
| 71 explicit ExtensionPrefs(PrefService* prefs, | 71 ExtensionPrefs(PrefService* prefs, |
| 72 const FilePath& root_dir, | 72 const FilePath& root_dir, |
| 73 ExtensionPrefValueMap* extension_pref_value_map); | 73 ExtensionPrefValueMap* extension_pref_value_map); |
| 74 virtual ~ExtensionPrefs(); | 74 virtual ~ExtensionPrefs(); |
| 75 | 75 |
| 76 // Returns a copy of the Extensions prefs. | 76 // Returns a copy of the Extensions prefs. |
| 77 // TODO(erikkay) Remove this so that external consumers don't need to be | 77 // TODO(erikkay) Remove this so that external consumers don't need to be |
| 78 // aware of the internal structure of the preferences. | 78 // aware of the internal structure of the preferences. |
| 79 base::DictionaryValue* CopyCurrentExtensions(); | 79 base::DictionaryValue* CopyCurrentExtensions(); |
| 80 | 80 |
| 81 // Returns true if the specified external extension was uninstalled by the | 81 // Returns true if the specified external extension was uninstalled by the |
| 82 // user. | 82 // user. |
| 83 bool IsExternalExtensionUninstalled(const std::string& id) const; | 83 bool IsExternalExtensionUninstalled(const std::string& id) const; |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 448 |
| 449 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; | 449 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; |
| 450 | 450 |
| 451 // The URLs of all of the toolstrips. | 451 // The URLs of all of the toolstrips. |
| 452 URLList shelf_order_; | 452 URLList shelf_order_; |
| 453 | 453 |
| 454 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 454 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 455 }; | 455 }; |
| 456 | 456 |
| 457 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 457 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |