Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: chrome/browser/extensions/component_loader.h

Issue 30833003: Add code to load Hangout Services as a component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for tryjobs. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
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 AddHangoutServicesExtension();
115 void AddImageLoaderExtension(); 116 void AddImageLoaderExtension();
116 void AddBookmarksExtensions(); 117 void AddBookmarksExtensions();
117 118
118 void AddWithName(int manifest_resource_id, 119 void AddWithName(int manifest_resource_id,
119 const base::FilePath& root_directory, 120 const base::FilePath& root_directory,
120 const std::string& name); 121 const std::string& name);
121 void AddChromeApp(); 122 void AddChromeApp();
122 void AddKeyboardApp(); 123 void AddKeyboardApp();
123 void AddWebStoreApp(); 124 void AddWebStoreApp();
124 125
125 // Unloads |component| from the memory. 126 // Unloads |component| from the memory.
126 void UnloadComponent(ComponentExtensionInfo* component); 127 void UnloadComponent(ComponentExtensionInfo* component);
127 128
128 PrefService* profile_prefs_; 129 PrefService* profile_prefs_;
129 PrefService* local_state_; 130 PrefService* local_state_;
130 131
131 ExtensionServiceInterface* extension_service_; 132 ExtensionServiceInterface* extension_service_;
132 133
133 // List of registered component extensions (see Manifest::Location). 134 // List of registered component extensions (see Manifest::Location).
134 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; 135 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions;
135 RegisteredComponentExtensions component_extensions_; 136 RegisteredComponentExtensions component_extensions_;
136 137
137 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); 138 DISALLOW_COPY_AND_ASSIGN(ComponentLoader);
138 }; 139 };
139 140
140 } // namespace extensions 141 } // namespace extensions
141 142
142 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 143 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698