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

Side by Side Diff: chrome/browser/chromeos/arc/arc_service_launcher.h

Issue 2264743002: cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cheets: implement cros side of WallpaperManagerService. Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/arc/arc_service_manager.h" 11 #include "components/arc/arc_service_manager.h"
12 12
13 namespace arc { 13 namespace arc {
14 14
15 class ArcWallpaperHandler;
16
15 // Detects ARC availability and launches ARC bridge service. 17 // Detects ARC availability and launches ARC bridge service.
16 class ArcServiceLauncher { 18 class ArcServiceLauncher {
17 public: 19 public:
18 ArcServiceLauncher(); 20 ArcServiceLauncher();
19 ~ArcServiceLauncher(); 21 ~ArcServiceLauncher();
20 22
21 void Initialize(); 23 void Initialize();
22 void Shutdown(); 24 void Shutdown();
23 25
24 private: 26 private:
25 std::unique_ptr<ArcServiceManager> arc_service_manager_; 27 std::unique_ptr<ArcServiceManager> arc_service_manager_;
28 std::shared_ptr<ArcWallpaperHandler> arc_wallpaper_handler_;
xiyuan 2016/08/22 22:49:41 Do we really need a shared_ptr? Can some class own
Muyuan 2016/08/22 23:48:19 OK.. So I wonder if ArcServiceManager should own i
xiyuan 2016/08/23 00:41:04 Could it still be owned by ArcIntentHelperBridge a
Shuhei Takahashi 2016/08/23 09:34:21 ArcWallpaperHandler is accessed from ArcIntentHelp
Muyuan 2016/08/23 19:45:48 ArcWallpaperBridge
Muyuan 2016/08/23 19:45:48 Done.
26 29
27 DISALLOW_COPY_AND_ASSIGN(ArcServiceLauncher); 30 DISALLOW_COPY_AND_ASSIGN(ArcServiceLauncher);
28 }; 31 };
29 32
30 } // namespace arc 33 } // namespace arc
31 34
32 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_ 35 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698