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

Side by Side Diff: apps/shell/shell_extension_system.h

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, RuntimeDataTest tweak, win warning Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | apps/shell/shell_extension_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_ 5 #ifndef APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_
6 #define APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_ 6 #define APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/extensions/extension_system.h"
10 #include "extensions/common/one_shot_event.h" 10 #include "extensions/common/one_shot_event.h"
(...skipping 23 matching lines...) Expand all
34 // Loads an unpacked application from a directory and attempts to launch it. 34 // Loads an unpacked application from a directory and attempts to launch it.
35 // Returns true on success. 35 // Returns true on success.
36 bool LoadAndLaunchApp(const base::FilePath& app_dir); 36 bool LoadAndLaunchApp(const base::FilePath& app_dir);
37 37
38 // BrowserContextKeyedService implementation: 38 // BrowserContextKeyedService implementation:
39 virtual void Shutdown() OVERRIDE; 39 virtual void Shutdown() OVERRIDE;
40 40
41 // ExtensionSystem implementation: 41 // ExtensionSystem implementation:
42 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE; 42 virtual void InitForRegularProfile(bool extensions_enabled) OVERRIDE;
43 virtual ExtensionService* extension_service() OVERRIDE; 43 virtual ExtensionService* extension_service() OVERRIDE;
44 virtual RuntimeData* runtime_data() OVERRIDE;
44 virtual ManagementPolicy* management_policy() OVERRIDE; 45 virtual ManagementPolicy* management_policy() OVERRIDE;
45 virtual UserScriptMaster* user_script_master() OVERRIDE; 46 virtual UserScriptMaster* user_script_master() OVERRIDE;
46 virtual ProcessManager* process_manager() OVERRIDE; 47 virtual ProcessManager* process_manager() OVERRIDE;
47 virtual StateStore* state_store() OVERRIDE; 48 virtual StateStore* state_store() OVERRIDE;
48 virtual StateStore* rules_store() OVERRIDE; 49 virtual StateStore* rules_store() OVERRIDE;
49 virtual InfoMap* info_map() OVERRIDE; 50 virtual InfoMap* info_map() OVERRIDE;
50 virtual LazyBackgroundTaskQueue* lazy_background_task_queue() 51 virtual LazyBackgroundTaskQueue* lazy_background_task_queue()
51 OVERRIDE; 52 OVERRIDE;
52 virtual EventRouter* event_router() OVERRIDE; 53 virtual EventRouter* event_router() OVERRIDE;
53 virtual ExtensionWarningService* warning_service() OVERRIDE; 54 virtual ExtensionWarningService* warning_service() OVERRIDE;
54 virtual Blacklist* blacklist() OVERRIDE; 55 virtual Blacklist* blacklist() OVERRIDE;
55 virtual ErrorConsole* error_console() OVERRIDE; 56 virtual ErrorConsole* error_console() OVERRIDE;
56 virtual InstallVerifier* install_verifier() OVERRIDE; 57 virtual InstallVerifier* install_verifier() OVERRIDE;
57 virtual void RegisterExtensionWithRequestContexts( 58 virtual void RegisterExtensionWithRequestContexts(
58 const Extension* extension) OVERRIDE; 59 const Extension* extension) OVERRIDE;
59 virtual void UnregisterExtensionWithRequestContexts( 60 virtual void UnregisterExtensionWithRequestContexts(
60 const std::string& extension_id, 61 const std::string& extension_id,
61 const UnloadedExtensionInfo::Reason reason) OVERRIDE; 62 const UnloadedExtensionInfo::Reason reason) OVERRIDE;
62 virtual const OneShotEvent& ready() const OVERRIDE; 63 virtual const OneShotEvent& ready() const OVERRIDE;
63 64
64 private: 65 private:
65 content::BrowserContext* browser_context_; // Not owned. 66 content::BrowserContext* browser_context_; // Not owned.
66 67
67 // Data to be accessed on the IO thread. Must outlive process_manager_. 68 // Data to be accessed on the IO thread. Must outlive process_manager_.
68 scoped_refptr<InfoMap> info_map_; 69 scoped_refptr<InfoMap> info_map_;
69 70
71 scoped_ptr<RuntimeData> runtime_data_;
70 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_; 72 scoped_ptr<LazyBackgroundTaskQueue> lazy_background_task_queue_;
71 scoped_ptr<EventRouter> event_router_; 73 scoped_ptr<EventRouter> event_router_;
72 scoped_ptr<ProcessManager> process_manager_; 74 scoped_ptr<ProcessManager> process_manager_;
73 75
74 // Signaled when the extension system has completed its startup tasks. 76 // Signaled when the extension system has completed its startup tasks.
75 OneShotEvent ready_; 77 OneShotEvent ready_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem); 79 DISALLOW_COPY_AND_ASSIGN(ShellExtensionSystem);
78 }; 80 };
79 81
80 } // namespace extensions 82 } // namespace extensions
81 83
82 #endif // APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_ 84 #endif // APPS_SHELL_SHELL_EXTENSION_SYSTEM_H_
OLDNEW
« no previous file with comments | « no previous file | apps/shell/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698