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

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

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_INSTALLED_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_
7 #pragma once 7 #pragma once
8 8
9 class ExtensionPrefs;
10 class ExtensionService; 9 class ExtensionService;
11 10
12 namespace extensions { 11 namespace extensions {
13 12
13 class ExtensionPrefs;
14 struct ExtensionInfo; 14 struct ExtensionInfo;
15 15
16 // Loads installed extensions from the prefs. 16 // Loads installed extensions from the prefs.
17 class InstalledLoader { 17 class InstalledLoader {
18 public: 18 public:
19 explicit InstalledLoader(ExtensionService* extension_service); 19 explicit InstalledLoader(ExtensionService* extension_service);
20 virtual ~InstalledLoader(); 20 virtual ~InstalledLoader();
21 21
22 // Loads extension from prefs. 22 // Loads extension from prefs.
23 void Load(const ExtensionInfo& info, bool write_to_prefs); 23 void Load(const ExtensionInfo& info, bool write_to_prefs);
24 24
25 // Loads all installed extensions (used by startup and testing code). 25 // Loads all installed extensions (used by startup and testing code).
26 void LoadAllExtensions(); 26 void LoadAllExtensions();
27 27
28 private: 28 private:
29 // Returns the flags that should be used with Extension::Create() for an 29 // Returns the flags that should be used with Extension::Create() for an
30 // extension that is already installed. 30 // extension that is already installed.
31 int GetCreationFlags(const ExtensionInfo* info); 31 int GetCreationFlags(const ExtensionInfo* info);
32 32
33 ExtensionService* extension_service_; 33 ExtensionService* extension_service_;
34 34
35 ExtensionPrefs* extension_prefs_; 35 ExtensionPrefs* extension_prefs_;
36 }; 36 };
37 37
38 } // namespace extensions 38 } // namespace extensions
39 39
40 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ 40 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_toolbar_model.cc ('k') | chrome/browser/extensions/permissions_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698