| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ |
| 7 #pragma once |
| 8 |
| 9 class Extension; |
| 10 class ExtensionPrefs; |
| 11 class ExtensionService; |
| 12 struct ExtensionInfo; |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 // Loads installed extensions from the prefs. |
| 17 class InstalledLoader { |
| 18 public: |
| 19 explicit InstalledLoader(ExtensionService* extension_service); |
| 20 virtual ~InstalledLoader(); |
| 21 |
| 22 // Loads extension from prefs. |
| 23 void Load(const ExtensionInfo& info, bool write_to_prefs); |
| 24 |
| 25 // Loads all installed extensions (used by startup and testing code). |
| 26 void LoadAllExtensions(); |
| 27 |
| 28 private: |
| 29 // Returns the flags that should be used with Extension::Create() for an |
| 30 // extension that is already installed. |
| 31 int GetCreationFlags(const ExtensionInfo* info); |
| 32 |
| 33 ExtensionService* extension_service_; |
| 34 |
| 35 ExtensionPrefs* extension_prefs_; |
| 36 }; |
| 37 |
| 38 } // namespace extensions |
| 39 |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ |
| OLD | NEW |