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

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

Issue 13872010: cros: Add a header for gaia auth requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, comments in #1 Created 7 years, 8 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const base::FilePath& root_directory); 112 const base::FilePath& root_directory);
113 113
114 // Loads a registered component extension. 114 // Loads a registered component extension.
115 void Load(const ComponentExtensionInfo& info); 115 void Load(const ComponentExtensionInfo& info);
116 116
117 void AddDefaultComponentExtensionsWithBackgroundPages( 117 void AddDefaultComponentExtensionsWithBackgroundPages(
118 bool skip_session_components); 118 bool skip_session_components);
119 void AddFileManagerExtension(); 119 void AddFileManagerExtension();
120 void AddImageLoaderExtension(); 120 void AddImageLoaderExtension();
121 121
122 #if defined(OS_CHROMEOS)
123 void AddGaiaAuthExtension();
124 #endif
125
126 // Add the enterprise webstore extension, or reload it if already loaded. 122 // Add the enterprise webstore extension, or reload it if already loaded.
127 void AddOrReloadEnterpriseWebStore(); 123 void AddOrReloadEnterpriseWebStore();
128 124
129 void AddChromeApp(); 125 void AddChromeApp();
130 126
131 // Unloads |component| from the memory. 127 // Unloads |component| from the memory.
132 void UnloadComponent(ComponentExtensionInfo* component); 128 void UnloadComponent(ComponentExtensionInfo* component);
133 129
134 PrefService* profile_prefs_; 130 PrefService* profile_prefs_;
135 PrefService* local_state_; 131 PrefService* local_state_;
136 132
137 ExtensionServiceInterface* extension_service_; 133 ExtensionServiceInterface* extension_service_;
138 134
139 // List of registered component extensions (see Manifest::Location). 135 // List of registered component extensions (see Manifest::Location).
140 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions; 136 typedef std::vector<ComponentExtensionInfo> RegisteredComponentExtensions;
141 RegisteredComponentExtensions component_extensions_; 137 RegisteredComponentExtensions component_extensions_;
142 138
143 PrefChangeRegistrar pref_change_registrar_; 139 PrefChangeRegistrar pref_change_registrar_;
144 140
145 DISALLOW_COPY_AND_ASSIGN(ComponentLoader); 141 DISALLOW_COPY_AND_ASSIGN(ComponentLoader);
146 }; 142 };
147 143
148 } // namespace extensions 144 } // namespace extensions
149 145
150 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_ 146 #endif // CHROME_BROWSER_EXTENSIONS_COMPONENT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698