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

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: Rebased and formatted Created 5 years 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 19
18 // Manages creation and destruction of services that communicate with the ARC 20 // Manages creation and destruction of services that communicate with the ARC
19 // instance via the ArcBridgeService. 21 // instance via the ArcBridgeService.
20 class ArcServiceManager { 22 class ArcServiceManager {
21 public: 23 public:
22 explicit ArcServiceManager(scoped_ptr<ArcSettingsBridge> settings_bridge); 24 explicit ArcServiceManager(scoped_ptr<ArcSettingsBridge> settings_bridge);
23 virtual ~ArcServiceManager(); 25 virtual ~ArcServiceManager();
24 26
25 // |arc_bridge_service| can only be accessed on the thread that this 27 // |arc_bridge_service| can only be accessed on the thread that this
26 // class was created on. 28 // class was created on.
27 ArcBridgeService* arc_bridge_service(); 29 ArcBridgeService* arc_bridge_service();
28 30
29 // Gets the global instance of the ARC Service Manager. This can only be 31 // Gets the global instance of the ARC Service Manager. This can only be
30 // called on the thread that this class was created on. 32 // called on the thread that this class was created on.
31 static ArcServiceManager* Get(); 33 static ArcServiceManager* Get();
32 34
35 // Called the main profile is initialized after user logs-in.
hidehiko 2015/12/22 08:51:26 nit: "// Called when the main profile is ..." ?
yoshiki 2015/12/22 10:13:53 Done.
36 void PostProfileInit(const AccountId& account_id);
37
33 private: 38 private:
34 base::ThreadChecker thread_checker_; 39 base::ThreadChecker thread_checker_;
35 scoped_ptr<ArcBridgeService> arc_bridge_service_; 40 scoped_ptr<ArcBridgeService> arc_bridge_service_;
36 scoped_ptr<ArcInputBridge> arc_input_bridge_; 41 scoped_ptr<ArcInputBridge> arc_input_bridge_;
42 scoped_ptr<ArcNotificationManager> arc_notification_manager_;
37 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_; 43 scoped_ptr<ArcSettingsBridge> arc_settings_bridge_;
38 44
39 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager); 45 DISALLOW_COPY_AND_ASSIGN(ArcServiceManager);
40 }; 46 };
41 47
42 } // namespace arc 48 } // namespace arc
43 49
44 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_ 50 #endif // COMPONENTS_ARC_ARC_SERVICE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698