OLD | NEW |
---|---|
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_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 | 7 |
8 class ExtensionService; | 8 class ExtensionService; |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
(...skipping 12 matching lines...) Expand all Loading... | |
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 // Store metrics related to the loaded extensions. | |
Yoyo Zhou
2015/02/25 00:19:58
Store/Load seem like the wrong verbs here. How abo
rkaplow
2015/02/25 16:37:49
sounds better.
| |
34 void LoadExtensionsMetrics(); | |
35 | |
33 ExtensionService* extension_service_; | 36 ExtensionService* extension_service_; |
34 ExtensionRegistry* extension_registry_; | 37 ExtensionRegistry* extension_registry_; |
35 | 38 |
36 ExtensionPrefs* extension_prefs_; | 39 ExtensionPrefs* extension_prefs_; |
37 }; | 40 }; |
38 | 41 |
39 } // namespace extensions | 42 } // namespace extensions |
40 | 43 |
41 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ | 44 #endif // CHROME_BROWSER_EXTENSIONS_INSTALLED_LOADER_H_ |
OLD | NEW |