Rename desktop_cursor_loader_updater_aurax11.
[chromium-blink-merge.git] / chrome / browser / extensions / installed_loader.h
blobf608a203a5f087f3a74e61698f6f9ad618415ba6
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_
8 class ExtensionService;
10 namespace extensions {
12 class ExtensionPrefs;
13 struct ExtensionInfo;
15 // Loads installed extensions from the prefs.
16 class InstalledLoader {
17 public:
18 explicit InstalledLoader(ExtensionService* extension_service);
19 virtual ~InstalledLoader();
21 // Loads extension from prefs.
22 void Load(const ExtensionInfo& info, bool write_to_prefs);
24 // Loads all installed extensions (used by startup and testing code).
25 void LoadAllExtensions();
27 private:
28 // Returns the flags that should be used with Extension::Create() for an
29 // extension that is already installed.
30 int GetCreationFlags(const ExtensionInfo* info);
32 ExtensionService* extension_service_;
34 ExtensionPrefs* extension_prefs_;
37 } // namespace extensions
39 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_