Chromium Code Reviews| 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_COMPONENT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 69 |
| 70 // content::NotificationObserver implementation | 70 // content::NotificationObserver implementation |
| 71 virtual void Observe(int type, | 71 virtual void Observe(int type, |
| 72 const content::NotificationSource& source, | 72 const content::NotificationSource& source, |
| 73 const content::NotificationDetails& details) OVERRIDE; | 73 const content::NotificationDetails& details) OVERRIDE; |
| 74 | 74 |
| 75 static void RegisterUserPrefs(PrefService* prefs); | 75 static void RegisterUserPrefs(PrefService* prefs); |
| 76 | 76 |
| 77 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if | 77 // Parse the given JSON manifest. Returns NULL if it cannot be parsed, or if |
| 78 // if the result is not a DictionaryValue. | 78 // if the result is not a DictionaryValue. |
| 79 DictionaryValue* ParseManifest(const std::string& manifest_contents) const; | 79 DictionaryValue* ParseManifest(const std::string& manifest_contents) |
| 80 const; | |
|
Aaron Boodman
2012/04/15 21:04:29
no need to change this
| |
| 80 | 81 |
| 81 // Clear the list of registered extensions. | 82 // Clear the list of registered extensions. |
| 82 void ClearAllRegistered(); | 83 void ClearAllRegistered(); |
| 83 | 84 |
| 84 // Reloads a registered component extension. | 85 // Reloads a registered component extension. |
| 85 void Reload(const std::string& extension_id); | 86 void Reload(const std::string& extension_id); |
| 86 | 87 |
| 87 private: | 88 private: |
| 88 // Information about a registered component extension. | 89 // Information about a registered component extension. |
| 89 struct ComponentExtensionInfo { | 90 struct ComponentExtensionInfo { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 // List of registered component extensions (see Extension::Location). | 123 // List of registered component extensions (see Extension::Location). |
| 123 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; | 124 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; |
| 124 RegisteredComponentExtensions component_extensions_; | 125 RegisteredComponentExtensions component_extensions_; |
| 125 | 126 |
| 126 PrefChangeRegistrar pref_change_registrar_; | 127 PrefChangeRegistrar pref_change_registrar_; |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace extensions | 130 } // namespace extensions |
| 130 | 131 |
| 131 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 132 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
| OLD | NEW |