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

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

Issue 255047: Ensure ChromeURLRequestContext finds out first about extension loading (Closed)
Patch Set: cr changes Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTENSIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 Extension* GetExtensionByIdInternal(const std::string& id, 229 Extension* GetExtensionByIdInternal(const std::string& id,
230 bool include_enabled, 230 bool include_enabled,
231 bool include_disabled); 231 bool include_disabled);
232 232
233 // Load a single extension from the prefs. This can be done on the UI thread 233 // Load a single extension from the prefs. This can be done on the UI thread
234 // because we don't touch the disk. 234 // because we don't touch the disk.
235 void LoadInstalledExtension( 235 void LoadInstalledExtension(
236 DictionaryValue* manifest, const std::string& id, 236 DictionaryValue* manifest, const std::string& id,
237 const FilePath& path, Extension::Location location); 237 const FilePath& path, Extension::Location location);
238 238
239 // Handles sending notification that |extension| was loaded.
240 void NotifyExtensionLoaded(Extension* extension);
241
242 // Handles sending notification that |extension| was unloaded.
243 void NotifyExtensionUnloaded(Extension* extension);
244
239 // Retrieves a vector of all page actions or browser actions, irrespective of 245 // Retrieves a vector of all page actions or browser actions, irrespective of
240 // which extension they belong to. 246 // which extension they belong to.
241 std::vector<ExtensionAction*> GetExtensionActions( 247 std::vector<ExtensionAction*> GetExtensionActions(
242 ExtensionAction::ExtensionActionType action_type) const; 248 ExtensionAction::ExtensionActionType action_type) const;
243 249
244 // The profile this ExtensionsService is part of. 250 // The profile this ExtensionsService is part of.
245 Profile* profile_; 251 Profile* profile_;
246 252
247 // Preferences for the owning profile. 253 // Preferences for the owning profile.
248 scoped_ptr<ExtensionPrefs> extension_prefs_; 254 scoped_ptr<ExtensionPrefs> extension_prefs_;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 381
376 // A map of all external extension providers. 382 // A map of all external extension providers.
377 typedef std::map<Extension::Location, 383 typedef std::map<Extension::Location,
378 linked_ptr<ExternalExtensionProvider> > ProviderMap; 384 linked_ptr<ExternalExtensionProvider> > ProviderMap;
379 ProviderMap external_extension_providers_; 385 ProviderMap external_extension_providers_;
380 386
381 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); 387 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend);
382 }; 388 };
383 389
384 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ 390 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698