| OLD | NEW |
| 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 COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ | 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ |
| 6 #define COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ | 6 #define COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class ArcBridgeHostImpl : public mojom::ArcBridgeHost { | 31 class ArcBridgeHostImpl : public mojom::ArcBridgeHost { |
| 32 public: | 32 public: |
| 33 // Interface to keep the Mojo channel InterfacePtr. | 33 // Interface to keep the Mojo channel InterfacePtr. |
| 34 class MojoChannel; | 34 class MojoChannel; |
| 35 | 35 |
| 36 ArcBridgeHostImpl(ArcBridgeService* arc_bridge_service, | 36 ArcBridgeHostImpl(ArcBridgeService* arc_bridge_service, |
| 37 mojom::ArcBridgeInstancePtr instance); | 37 mojom::ArcBridgeInstancePtr instance); |
| 38 ~ArcBridgeHostImpl() override; | 38 ~ArcBridgeHostImpl() override; |
| 39 | 39 |
| 40 // ArcBridgeHost overrides. | 40 // ArcBridgeHost overrides. |
| 41 void OnAccessibilityHelperInstanceReady( |
| 42 mojom::AccessibilityHelperInstancePtr accessibility_helper_ptr) override; |
| 41 void OnAppInstanceReady(mojom::AppInstancePtr app_ptr) override; | 43 void OnAppInstanceReady(mojom::AppInstancePtr app_ptr) override; |
| 42 void OnAudioInstanceReady(mojom::AudioInstancePtr audio_ptr) override; | 44 void OnAudioInstanceReady(mojom::AudioInstancePtr audio_ptr) override; |
| 43 void OnAuthInstanceReady(mojom::AuthInstancePtr auth_ptr) override; | 45 void OnAuthInstanceReady(mojom::AuthInstancePtr auth_ptr) override; |
| 44 void OnBluetoothInstanceReady( | 46 void OnBluetoothInstanceReady( |
| 45 mojom::BluetoothInstancePtr bluetooth_ptr) override; | 47 mojom::BluetoothInstancePtr bluetooth_ptr) override; |
| 46 void OnBootPhaseMonitorInstanceReady( | 48 void OnBootPhaseMonitorInstanceReady( |
| 47 mojom::BootPhaseMonitorInstancePtr boot_phase_monitor_ptr) override; | 49 mojom::BootPhaseMonitorInstancePtr boot_phase_monitor_ptr) override; |
| 48 void OnClipboardInstanceReady( | 50 void OnClipboardInstanceReady( |
| 49 mojom::ClipboardInstancePtr clipboard_ptr) override; | 51 mojom::ClipboardInstancePtr clipboard_ptr) override; |
| 50 void OnCrashCollectorInstanceReady( | 52 void OnCrashCollectorInstanceReady( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Put as a last member to ensure that any callback tied to the elements | 100 // Put as a last member to ensure that any callback tied to the elements |
| 99 // is not invoked. | 101 // is not invoked. |
| 100 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; | 102 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); | 104 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 } // namespace arc | 107 } // namespace arc |
| 106 | 108 |
| 107 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ | 109 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ |
| OLD | NEW |