| OLD | NEW |
| 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_bridge_service.h" | 5 #include "components/arc/arc_bridge_service.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 DCHECK(CalledOnValidThread()); | 89 DCHECK(CalledOnValidThread()); |
| 90 clipboard_.OnInstanceReady(std::move(clipboard_ptr)); | 90 clipboard_.OnInstanceReady(std::move(clipboard_ptr)); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void ArcBridgeService::OnCrashCollectorInstanceReady( | 93 void ArcBridgeService::OnCrashCollectorInstanceReady( |
| 94 mojom::CrashCollectorInstancePtr crash_collector_ptr) { | 94 mojom::CrashCollectorInstancePtr crash_collector_ptr) { |
| 95 DCHECK(CalledOnValidThread()); | 95 DCHECK(CalledOnValidThread()); |
| 96 crash_collector_.OnInstanceReady(std::move(crash_collector_ptr)); | 96 crash_collector_.OnInstanceReady(std::move(crash_collector_ptr)); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void ArcBridgeService::OnEnterpriseReportingInstanceReady( |
| 100 mojom::EnterpriseReportingInstancePtr enterprise_reporting_ptr) { |
| 101 enterprise_reporting_.OnInstanceReady(std::move(enterprise_reporting_ptr)); |
| 102 } |
| 103 |
| 99 void ArcBridgeService::OnFileSystemInstanceReady( | 104 void ArcBridgeService::OnFileSystemInstanceReady( |
| 100 mojom::FileSystemInstancePtr file_system_ptr) { | 105 mojom::FileSystemInstancePtr file_system_ptr) { |
| 101 DCHECK(CalledOnValidThread()); | 106 DCHECK(CalledOnValidThread()); |
| 102 file_system_.OnInstanceReady(std::move(file_system_ptr)); | 107 file_system_.OnInstanceReady(std::move(file_system_ptr)); |
| 103 } | 108 } |
| 104 | 109 |
| 105 void ArcBridgeService::OnImeInstanceReady(mojom::ImeInstancePtr ime_ptr) { | 110 void ArcBridgeService::OnImeInstanceReady(mojom::ImeInstancePtr ime_ptr) { |
| 106 DCHECK(CalledOnValidThread()); | 111 DCHECK(CalledOnValidThread()); |
| 107 ime_.OnInstanceReady(std::move(ime_ptr)); | 112 ime_.OnInstanceReady(std::move(ime_ptr)); |
| 108 } | 113 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 206 |
| 202 void ArcBridgeService::CloseAllChannels() { | 207 void ArcBridgeService::CloseAllChannels() { |
| 203 // Call all the error handlers of all the channels to both close the channel | 208 // Call all the error handlers of all the channels to both close the channel |
| 204 // and notify any observers that the channel is closed. | 209 // and notify any observers that the channel is closed. |
| 205 app_.CloseChannel(); | 210 app_.CloseChannel(); |
| 206 audio_.CloseChannel(); | 211 audio_.CloseChannel(); |
| 207 auth_.CloseChannel(); | 212 auth_.CloseChannel(); |
| 208 bluetooth_.CloseChannel(); | 213 bluetooth_.CloseChannel(); |
| 209 clipboard_.CloseChannel(); | 214 clipboard_.CloseChannel(); |
| 210 crash_collector_.CloseChannel(); | 215 crash_collector_.CloseChannel(); |
| 216 enterprise_reporting_.CloseChannel(); |
| 211 file_system_.CloseChannel(); | 217 file_system_.CloseChannel(); |
| 212 ime_.CloseChannel(); | 218 ime_.CloseChannel(); |
| 213 intent_helper_.CloseChannel(); | 219 intent_helper_.CloseChannel(); |
| 214 metrics_.CloseChannel(); | 220 metrics_.CloseChannel(); |
| 215 net_.CloseChannel(); | 221 net_.CloseChannel(); |
| 216 notifications_.CloseChannel(); | 222 notifications_.CloseChannel(); |
| 217 obb_mounter_.CloseChannel(); | 223 obb_mounter_.CloseChannel(); |
| 218 policy_.CloseChannel(); | 224 policy_.CloseChannel(); |
| 219 power_.CloseChannel(); | 225 power_.CloseChannel(); |
| 220 process_.CloseChannel(); | 226 process_.CloseChannel(); |
| 221 storage_manager_.CloseChannel(); | 227 storage_manager_.CloseChannel(); |
| 222 video_.CloseChannel(); | 228 video_.CloseChannel(); |
| 223 window_manager_.CloseChannel(); | 229 window_manager_.CloseChannel(); |
| 224 } | 230 } |
| 225 | 231 |
| 226 } // namespace arc | 232 } // namespace arc |
| OLD | NEW |