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

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

Issue 1701063003: Refactor ArcBridgeService detection and initialization to a separate class ArcServiceLauncher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer feedback Created 4 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11 #include "base/threading/thread_checker.h"
12 #include "components/arc/arc_service_manager.h"
13
14 namespace arc {
15
16 // Detects ARC availability and launches ARC bridge service.
17 class ArcServiceLauncher {
18 public:
19 ArcServiceLauncher();
20 ~ArcServiceLauncher();
21
22 void Launch();
xiyuan 2016/02/26 17:38:01 nit: Launch -> Initialize, Initialize is used in a
arthurhsu 2016/02/26 19:10:06 Done.
23 void Shutdown();
24
25 private:
26 // DBus callback.
27 void OnArcAvailable(bool available);
28
29 base::ThreadChecker thread_checker_;
30 scoped_ptr<ArcServiceManager> arc_service_manager_;
31 base::WeakPtrFactory<ArcServiceLauncher> weak_factory_;
32
33 DISALLOW_COPY_AND_ASSIGN(ArcServiceLauncher);
34 };
35
36 } // namespace arc
37
38 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SERVICE_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_service_launcher.cc » ('j') | components/arc/arc_bridge_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698