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

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

Issue 67253003: Reland: Move ExtensionProcessManager to src/extensions, part 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase process_manager Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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_TEST_EXTENSION_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
7 7
8 #include "chrome/browser/extensions/extension_system.h" 8 #include "chrome/browser/extensions/extension_system.h"
9 9
10 class CommandLine; 10 class CommandLine;
(...skipping 26 matching lines...) Expand all
37 ExtensionPrefs* CreateExtensionPrefs(const CommandLine* command_line, 37 ExtensionPrefs* CreateExtensionPrefs(const CommandLine* command_line,
38 const base::FilePath& install_directory); 38 const base::FilePath& install_directory);
39 39
40 // Creates an ExtensionService initialized with the testing profile and 40 // Creates an ExtensionService initialized with the testing profile and
41 // returns it, and creates ExtensionPrefs if it hasn't been created yet. 41 // returns it, and creates ExtensionPrefs if it hasn't been created yet.
42 ExtensionService* CreateExtensionService( 42 ExtensionService* CreateExtensionService(
43 const CommandLine* command_line, 43 const CommandLine* command_line,
44 const base::FilePath& install_directory, 44 const base::FilePath& install_directory,
45 bool autoupdate_enabled); 45 bool autoupdate_enabled);
46 46
47 // Creates an ExtensionProcessManager. If not invoked, the 47 // Creates a ProcessManager. If not invoked, the ProcessManager is NULL.
48 // ExtensionProcessManager is NULL. 48 void CreateProcessManager();
49 void CreateExtensionProcessManager();
50 49
51 // Allows the ExtensionProcessManager to be overriden, for example by a 50 // Allows the ProcessManager to be overriden, for example by a stub
52 // stub implementation. Takes ownership of |manager|. 51 // implementation. Takes ownership of |manager|.
53 void SetExtensionProcessManager(ExtensionProcessManager* manager); 52 void SetProcessManager(ProcessManager* manager);
54 53
55 void CreateSocketManager(); 54 void CreateSocketManager();
56 55
57 virtual void InitForRegularProfile(bool extensions_enabled, 56 virtual void InitForRegularProfile(bool extensions_enabled,
58 bool defer_background_creation) OVERRIDE {} 57 bool defer_background_creation) OVERRIDE {}
59 void SetExtensionService(ExtensionService* service); 58 void SetExtensionService(ExtensionService* service);
60 virtual ExtensionService* extension_service() OVERRIDE; 59 virtual ExtensionService* extension_service() OVERRIDE;
61 virtual ManagementPolicy* management_policy() OVERRIDE; 60 virtual ManagementPolicy* management_policy() OVERRIDE;
62 virtual UserScriptMaster* user_script_master() OVERRIDE; 61 virtual UserScriptMaster* user_script_master() OVERRIDE;
63 virtual ExtensionProcessManager* process_manager() OVERRIDE; 62 virtual ProcessManager* process_manager() OVERRIDE;
64 virtual StateStore* state_store() OVERRIDE; 63 virtual StateStore* state_store() OVERRIDE;
65 virtual StateStore* rules_store() OVERRIDE; 64 virtual StateStore* rules_store() OVERRIDE;
66 TestingValueStore* value_store() { return value_store_; } 65 TestingValueStore* value_store() { return value_store_; }
67 virtual InfoMap* info_map() OVERRIDE; 66 virtual InfoMap* info_map() OVERRIDE;
68 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE; 67 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() OVERRIDE;
69 virtual EventRouter* event_router() OVERRIDE; 68 virtual EventRouter* event_router() OVERRIDE;
70 virtual ExtensionWarningService* warning_service() OVERRIDE; 69 virtual ExtensionWarningService* warning_service() OVERRIDE;
71 virtual Blacklist* blacklist() OVERRIDE; 70 virtual Blacklist* blacklist() OVERRIDE;
72 virtual const OneShotEvent& ready() const OVERRIDE; 71 virtual const OneShotEvent& ready() const OVERRIDE;
73 virtual ErrorConsole* error_console() OVERRIDE; 72 virtual ErrorConsole* error_console() OVERRIDE;
(...skipping 11 matching lines...) Expand all
85 84
86 private: 85 private:
87 scoped_ptr<StateStore> state_store_; 86 scoped_ptr<StateStore> state_store_;
88 // A pointer to the TestingValueStore owned by |state_store_|. 87 // A pointer to the TestingValueStore owned by |state_store_|.
89 TestingValueStore* value_store_; 88 TestingValueStore* value_store_;
90 scoped_ptr<Blacklist> blacklist_; 89 scoped_ptr<Blacklist> blacklist_;
91 scoped_ptr<StandardManagementPolicyProvider> 90 scoped_ptr<StandardManagementPolicyProvider>
92 standard_management_policy_provider_; 91 standard_management_policy_provider_;
93 scoped_ptr<ManagementPolicy> management_policy_; 92 scoped_ptr<ManagementPolicy> management_policy_;
94 scoped_ptr<ExtensionService> extension_service_; 93 scoped_ptr<ExtensionService> extension_service_;
95 scoped_ptr<ExtensionProcessManager> extension_process_manager_; 94 scoped_ptr<ProcessManager> process_manager_;
96 scoped_refptr<InfoMap> info_map_; 95 scoped_refptr<InfoMap> info_map_;
97 scoped_ptr<ErrorConsole> error_console_; 96 scoped_ptr<ErrorConsole> error_console_;
98 OneShotEvent ready_; 97 OneShotEvent ready_;
99 }; 98 };
100 99
101 } // namespace extensions 100 } // namespace extensions
102 101
103 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_ 102 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/suggest_permission_util.cc ('k') | chrome/browser/extensions/test_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698