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

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

Issue 1843563003: Move arc_intent_helper_bridge.h from c/b/chromeos/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address a comment Created 4 years, 8 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/BUILD.gn ('k') | components/arc/intent_helper/DEPS » ('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 #include "components/arc/arc_service_manager.h" 5 #include "components/arc/arc_service_manager.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "components/arc/arc_bridge_bootstrap.h" 9 #include "components/arc/arc_bridge_bootstrap.h"
10 #include "components/arc/arc_bridge_service_impl.h" 10 #include "components/arc/arc_bridge_service_impl.h"
11 #include "components/arc/clipboard/arc_clipboard_bridge.h" 11 #include "components/arc/clipboard/arc_clipboard_bridge.h"
12 #include "components/arc/crash_collector/arc_crash_collector_bridge.h" 12 #include "components/arc/crash_collector/arc_crash_collector_bridge.h"
13 #include "components/arc/ime/arc_ime_service.h" 13 #include "components/arc/ime/arc_ime_service.h"
14 #include "components/arc/input/arc_input_bridge.h" 14 #include "components/arc/input/arc_input_bridge.h"
15 #include "components/arc/intent_helper/arc_intent_helper_bridge.h"
15 #include "components/arc/metrics/arc_metrics_service.h" 16 #include "components/arc/metrics/arc_metrics_service.h"
16 #include "components/arc/net/arc_net_host_impl.h" 17 #include "components/arc/net/arc_net_host_impl.h"
17 #include "components/arc/power/arc_power_bridge.h" 18 #include "components/arc/power/arc_power_bridge.h"
18 #include "ui/arc/notification/arc_notification_manager.h" 19 #include "ui/arc/notification/arc_notification_manager.h"
19 20
20 namespace arc { 21 namespace arc {
21 22
22 namespace { 23 namespace {
23 24
24 // Weak pointer. This class is owned by ChromeBrowserMainPartsChromeos. 25 // Weak pointer. This class is owned by ChromeBrowserMainPartsChromeos.
25 ArcServiceManager* g_arc_service_manager = nullptr; 26 ArcServiceManager* g_arc_service_manager = nullptr;
26 27
27 } // namespace 28 } // namespace
28 29
29 ArcServiceManager::ArcServiceManager() 30 ArcServiceManager::ArcServiceManager()
30 : arc_bridge_service_( 31 : arc_bridge_service_(
31 new ArcBridgeServiceImpl(ArcBridgeBootstrap::Create())) { 32 new ArcBridgeServiceImpl(ArcBridgeBootstrap::Create())) {
32 DCHECK(!g_arc_service_manager); 33 DCHECK(!g_arc_service_manager);
33 g_arc_service_manager = this; 34 g_arc_service_manager = this;
34 35
35 AddService(make_scoped_ptr(new ArcClipboardBridge(arc_bridge_service()))); 36 AddService(make_scoped_ptr(new ArcClipboardBridge(arc_bridge_service())));
36 AddService( 37 AddService(
37 make_scoped_ptr(new ArcCrashCollectorBridge(arc_bridge_service()))); 38 make_scoped_ptr(new ArcCrashCollectorBridge(arc_bridge_service())));
38 AddService(make_scoped_ptr(new ArcImeService(arc_bridge_service()))); 39 AddService(make_scoped_ptr(new ArcImeService(arc_bridge_service())));
39 AddService(make_scoped_ptr(new ArcInputBridge(arc_bridge_service()))); 40 AddService(make_scoped_ptr(new ArcInputBridge(arc_bridge_service())));
41 AddService(make_scoped_ptr(new ArcIntentHelperBridge(arc_bridge_service())));
40 AddService(make_scoped_ptr(new ArcMetricsService(arc_bridge_service()))); 42 AddService(make_scoped_ptr(new ArcMetricsService(arc_bridge_service())));
41 AddService(make_scoped_ptr(new ArcNetHostImpl(arc_bridge_service()))); 43 AddService(make_scoped_ptr(new ArcNetHostImpl(arc_bridge_service())));
42 AddService(make_scoped_ptr(new ArcPowerBridge(arc_bridge_service()))); 44 AddService(make_scoped_ptr(new ArcPowerBridge(arc_bridge_service())));
43 } 45 }
44 46
45 ArcServiceManager::~ArcServiceManager() { 47 ArcServiceManager::~ArcServiceManager() {
46 DCHECK(thread_checker_.CalledOnValidThread()); 48 DCHECK(thread_checker_.CalledOnValidThread());
47 DCHECK(g_arc_service_manager == this); 49 DCHECK(g_arc_service_manager == this);
48 g_arc_service_manager = nullptr; 50 g_arc_service_manager = nullptr;
49 } 51 }
(...skipping 18 matching lines...) Expand all
68 70
69 void ArcServiceManager::OnPrimaryUserProfilePrepared( 71 void ArcServiceManager::OnPrimaryUserProfilePrepared(
70 const AccountId& account_id) { 72 const AccountId& account_id) {
71 DCHECK(thread_checker_.CalledOnValidThread()); 73 DCHECK(thread_checker_.CalledOnValidThread());
72 74
73 AddService(make_scoped_ptr( 75 AddService(make_scoped_ptr(
74 new ArcNotificationManager(arc_bridge_service(), account_id))); 76 new ArcNotificationManager(arc_bridge_service(), account_id)));
75 } 77 }
76 78
77 } // namespace arc 79 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/intent_helper/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698