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

Side by Side Diff: components/arc/arc_service_manager.h

Issue 1590723003: Host-side implementation of ARC Intent handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support new GURL interface at https://chromium.googlesource.com/chromium/src/+/dfbcc3b7926990bbf523… Created 4 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
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_service_manager.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ 5 #ifndef COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
6 #define COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ 6 #define COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
11 #include "components/signin/core/account_id/account_id.h" 11 #include "components/signin/core/account_id/account_id.h"
12 12
13 namespace arc { 13 namespace arc {
14 14
15 class ArcAuthService; 15 class ArcAuthService;
16 class ArcBridgeService; 16 class ArcBridgeService;
17 class ArcClipboardBridge; 17 class ArcClipboardBridge;
18 class ArcImeBridge; 18 class ArcImeBridge;
19 class ArcInputBridge; 19 class ArcInputBridge;
20 class ArcIntentHelperBridge;
20 class ArcNotificationManager; 21 class ArcNotificationManager;
21 class ArcPowerBridge; 22 class ArcPowerBridge;
22 class ArcSettingsBridge; 23 class ArcSettingsBridge;
23 class ArcVideoBridge; 24 class ArcVideoBridge;
24 25
25 // Manages creation and destruction of services that communicate with the ARC 26 // Manages creation and destruction of services that communicate with the ARC
26 // instance via the ArcBridgeService. 27 // instance via the ArcBridgeService.
27 class ArcServiceManager { 28 class ArcServiceManager {
28 public: 29 public:
29 ArcServiceManager(scoped_ptr<ArcAuthService> auth_service, 30 ArcServiceManager(scoped_ptr<ArcAuthService> auth_service,
31 scoped_ptr<ArcIntentHelperBridge> intent_helper_bridge,
30 scoped_ptr<ArcSettingsBridge> settings_bridge, 32 scoped_ptr<ArcSettingsBridge> settings_bridge,
31 scoped_ptr<ArcVideoBridge> video_bridge); 33 scoped_ptr<ArcVideoBridge> video_bridge);
32 virtual ~ArcServiceManager(); 34 virtual ~ArcServiceManager();
33 35
34 // |arc_bridge_service| can only be accessed on the thread that this 36 // |arc_bridge_service| can only be accessed on the thread that this
35 // class was created on. 37 // class was created on.
36 ArcBridgeService* arc_bridge_service(); 38 ArcBridgeService* arc_bridge_service();
37 39
38 // Gets the global instance of the ARC Service Manager. This can only be 40 // Gets the global instance of the ARC Service Manager. This can only be
39 // called on the thread that this class was created on. 41 // called on the thread that this class was created on.
40 static ArcServiceManager* Get(); 42 static ArcServiceManager* Get();
41 43
42 // Called when the main profile is initialized after user logs in. 44 // Called when the main profile is initialized after user logs in.
43 void OnPrimaryUserProfilePrepared(const AccountId& account_id); 45 void OnPrimaryUserProfilePrepared(const AccountId& account_id);
44 46
45 private: 47 private:
46 base::ThreadChecker thread_checker_; 48 base::ThreadChecker thread_checker_;
47 scoped_ptr<ArcBridgeService> arc_bridge_service_; 49 scoped_ptr<ArcBridgeService> arc_bridge_service_;
48 50
49 // Individual services 51 // Individual services
50 scoped_ptr<ArcAuthService> arc_auth_service_; 52 scoped_ptr<ArcAuthService> arc_auth_service_;
51 scoped_ptr<ArcClipboardBridge> arc_clipboard_bridge_; 53 scoped_ptr<ArcClipboardBridge> arc_clipboard_bridge_;
52 scoped_ptr<ArcImeBridge> arc_ime_bridge_; 54 scoped_ptr<ArcImeBridge> arc_ime_bridge_;
53 scoped_ptr<ArcInputBridge> arc_input_bridge_; 55 scoped_ptr<ArcInputBridge> arc_input_bridge_;
56 scoped_ptr<ArcIntentHelperBridge> arc_intent_helper_bridge_;
54 scoped_ptr<ArcNotificationManager> arc_notification_manager_; 57 scoped_ptr<ArcNotificationManager> arc_notification_manager_;
55 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_; 58 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_;
56 scoped_ptr<ArcPowerBridge> arc_power_bridge_; 59 scoped_ptr<ArcPowerBridge> arc_power_bridge_;
57 scoped_ptr<ArcVideoBridge> arc_video_bridge_; 60 scoped_ptr<ArcVideoBridge> arc_video_bridge_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); 62 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager);
60 }; 63 };
61 64
62 } // namespace arc 65 } // namespace arc
63 66
64 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ 67 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698