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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::string Add(const DictionaryValue* parsed_manifest, | 106 std::string Add(const DictionaryValue* parsed_manifest, |
107 const base::FilePath& root_directory); | 107 const base::FilePath& root_directory); |
108 | 108 |
109 // Loads a registered component extension. | 109 // Loads a registered component extension. |
110 void Load(const ComponentExtensionInfo& info); | 110 void Load(const ComponentExtensionInfo& info); |
111 | 111 |
112 void AddDefaultComponentExtensionsWithBackgroundPages( | 112 void AddDefaultComponentExtensionsWithBackgroundPages( |
113 bool skip_session_components); | 113 bool skip_session_components); |
114 void AddFileManagerExtension(); | 114 void AddFileManagerExtension(); |
115 void AddImageLoaderExtension(); | 115 void AddImageLoaderExtension(); |
| 116 void AddBookmarksExtensions(); |
116 | 117 |
117 void AddWithName(int manifest_resource_id, | 118 void AddWithName(int manifest_resource_id, |
118 const base::FilePath& root_directory, | 119 const base::FilePath& root_directory, |
119 const std::string& name); | 120 const std::string& name); |
120 void AddChromeApp(); | 121 void AddChromeApp(); |
121 void AddKeyboardApp(); | 122 void AddKeyboardApp(); |
122 void AddWebStoreApp(); | 123 void AddWebStoreApp(); |
123 | 124 |
124 // Unloads |component| from the memory. | 125 // Unloads |component| from the memory. |
125 void UnloadComponent(ComponentExtensionInfo* component); | 126 void UnloadComponent(ComponentExtensionInfo* component); |
126 | 127 |
127 PrefService* profile_prefs_; | 128 PrefService* profile_prefs_; |
128 PrefService* local_state_; | 129 PrefService* local_state_; |
129 | 130 |
130 ExtensionServiceInterface* extension_service_; | 131 ExtensionServiceInterface* extension_service_; |
131 | 132 |
132 // List of registered component extensions (see Manifest::Location). | 133 // List of registered component extensions (see Manifest::Location). |
133 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; | 134 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; |
134 RegisteredComponentExtensions component_extensions_; | 135 RegisteredComponentExtensions component_extensions_; |
135 | 136 |
136 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); | 137 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); |
137 }; | 138 }; |
138 | 139 |
139 } // namespace extensions | 140 } // namespace extensions |
140 | 141 |
141 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ | 142 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ |
OLD | NEW |