| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void OnIntentHelperInstanceReady( | 52 void OnIntentHelperInstanceReady( |
| 53 mojom::IntentHelperInstancePtr intent_helper_ptr) override; | 53 mojom::IntentHelperInstancePtr intent_helper_ptr) override; |
| 54 void OnMetricsInstanceReady(mojom::MetricsInstancePtr metrics_ptr) override; | 54 void OnMetricsInstanceReady(mojom::MetricsInstancePtr metrics_ptr) override; |
| 55 void OnNetInstanceReady(mojom::NetInstancePtr net_ptr) override; | 55 void OnNetInstanceReady(mojom::NetInstancePtr net_ptr) override; |
| 56 void OnNotificationsInstanceReady( | 56 void OnNotificationsInstanceReady( |
| 57 mojom::NotificationsInstancePtr notifications_ptr) override; | 57 mojom::NotificationsInstancePtr notifications_ptr) override; |
| 58 void OnObbMounterInstanceReady( | 58 void OnObbMounterInstanceReady( |
| 59 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; | 59 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; |
| 60 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; | 60 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; |
| 61 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; | 61 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; |
| 62 void OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override; |
| 62 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; | 63 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; |
| 63 void OnStorageManagerInstanceReady( | 64 void OnStorageManagerInstanceReady( |
| 64 mojom::StorageManagerInstancePtr storage_manager_ptr) override; | 65 mojom::StorageManagerInstancePtr storage_manager_ptr) override; |
| 65 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; | 66 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 // Called when the bridge channel is closed. This typically only happens when | 69 // Called when the bridge channel is closed. This typically only happens when |
| 69 // the ARC instance crashes. | 70 // the ARC instance crashes. |
| 70 void OnClosed(); | 71 void OnClosed(); |
| 71 | 72 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 85 // Put as a last member to ensure that any callback tied to the elements | 86 // Put as a last member to ensure that any callback tied to the elements |
| 86 // is not invoked. | 87 // is not invoked. |
| 87 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; | 88 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); | 90 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace arc | 93 } // namespace arc |
| 93 | 94 |
| 94 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ | 95 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ |
| OLD | NEW |