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

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

Issue 1477733002: Add ArcNotificationManager for new ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to ui/arc and Addressed comments 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
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 12
12 namespace arc { 13 namespace arc {
13 14
14 class ArcBridgeService; 15 class ArcBridgeService;
15 class ArcInputBridge; 16 class ArcInputBridge;
17 class ArcNotificationManager;
16 class ArcSettingsBridge; 18 class ArcSettingsBridge;
17 class ArcPowerBridge; 19 class ArcPowerBridge;
18 20
19 // Manages creation and destruction of services that communicate with the ARC 21 // Manages creation and destruction of services that communicate with the ARC
20 // instance via the ArcBridgeService. 22 // instance via the ArcBridgeService.
21 class ArcServiceManager { 23 class ArcServiceManager {
22 public: 24 public:
23 explicit ArcServiceManager(scoped_ptr<ArcSettingsBridge> settings_bridge); 25 ArcServiceManager(scoped_ptr<ArcSettingsBridge> settings_bridge);
hidehiko 2016/01/05 11:41:32 explicit needs to be kept?
yoshiki 2016/01/06 08:50:17 Done. I had removed wrongly...
24 virtual ~ArcServiceManager(); 26 virtual ~ArcServiceManager();
25 27
26 // |arc_bridge_service| can only be accessed on the thread that this 28 // |arc_bridge_service| can only be accessed on the thread that this
27 // class was created on. 29 // class was created on.
28 ArcBridgeService* arc_bridge_service(); 30 ArcBridgeService* arc_bridge_service();
29 31
30 // Gets the global instance of the ARC Service Manager. This can only be 32 // Gets the global instance of the ARC Service Manager. This can only be
31 // called on the thread that this class was created on. 33 // called on the thread that this class was created on.
32 static ArcServiceManager* Get(); 34 static ArcServiceManager* Get();
33 35
36 // Called when the main profile is initialized after user logs-in.
37 void OnPrimaryUserProfilePrepared(const AccountId& account_id);
38
34 private: 39 private:
35 base::ThreadChecker thread_checker_; 40 base::ThreadChecker thread_checker_;
36 scoped_ptr<ArcBridgeService> arc_bridge_service_; 41 scoped_ptr<ArcBridgeService> arc_bridge_service_;
37 scoped_ptr<ArcInputBridge> arc_input_bridge_; 42 scoped_ptr<ArcInputBridge> arc_input_bridge_;
43 scoped_ptr<ArcNotificationManager> arc_notification_manager_;
38 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_; 44 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_;
39 scoped_ptr<ArcPowerBridge> arc_power_bridge_; 45 scoped_ptr<ArcPowerBridge> arc_power_bridge_;
40 46
41 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); 47 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager);
42 }; 48 };
43 49
44 } // namespace arc 50 } // namespace arc
45 51
46 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ 52 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698