| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; | 67 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; |
| 68 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; | 68 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; |
| 69 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; | 69 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; |
| 70 void OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override; | 70 void OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override; |
| 71 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; | 71 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; |
| 72 void OnStorageManagerInstanceReady( | 72 void OnStorageManagerInstanceReady( |
| 73 mojom::StorageManagerInstancePtr storage_manager_ptr) override; | 73 mojom::StorageManagerInstancePtr storage_manager_ptr) override; |
| 74 void OnTracingInstanceReady(mojom::TracingInstancePtr trace_ptr) override; | 74 void OnTracingInstanceReady(mojom::TracingInstancePtr trace_ptr) override; |
| 75 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override; | 75 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override; |
| 76 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; | 76 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; |
| 77 void OnVoiceInteractionFrameworkInstanceReady( |
| 78 mojom::VoiceInteractionFrameworkInstancePtr framework_ptr) override; |
| 77 void OnWallpaperInstanceReady( | 79 void OnWallpaperInstanceReady( |
| 78 mojom::WallpaperInstancePtr wallpaper_ptr) override; | 80 mojom::WallpaperInstancePtr wallpaper_ptr) override; |
| 79 | 81 |
| 80 private: | 82 private: |
| 81 // Called when the bridge channel is closed. This typically only happens when | 83 // Called when the bridge channel is closed. This typically only happens when |
| 82 // the ARC instance crashes. | 84 // the ARC instance crashes. |
| 83 void OnClosed(); | 85 void OnClosed(); |
| 84 | 86 |
| 85 // The common implementation to handle ArcBridgeHost overrides. | 87 // The common implementation to handle ArcBridgeHost overrides. |
| 86 // |T| is a ARC Mojo Instance type. | 88 // |T| is a ARC Mojo Instance type. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 101 // Put as a last member to ensure that any callback tied to the elements | 103 // Put as a last member to ensure that any callback tied to the elements |
| 102 // is not invoked. | 104 // is not invoked. |
| 103 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; | 105 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; |
| 104 | 106 |
| 105 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); | 107 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace arc | 110 } // namespace arc |
| 109 | 111 |
| 110 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ | 112 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ |
| OLD | NEW |