| 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 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ | 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ |
| 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ | 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void OnNotificationsInstanceReady( | 62 void OnNotificationsInstanceReady( |
| 63 mojom::NotificationsInstancePtr notifications_ptr) override; | 63 mojom::NotificationsInstancePtr notifications_ptr) override; |
| 64 void OnObbMounterInstanceReady( | 64 void OnObbMounterInstanceReady( |
| 65 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; | 65 mojom::ObbMounterInstancePtr obb_mounter_ptr) override; |
| 66 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; | 66 void OnPolicyInstanceReady(mojom::PolicyInstancePtr policy_ptr) override; |
| 67 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; | 67 void OnPowerInstanceReady(mojom::PowerInstancePtr power_ptr) override; |
| 68 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; | 68 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; |
| 69 void OnStorageManagerInstanceReady( | 69 void OnStorageManagerInstanceReady( |
| 70 mojom::StorageManagerInstancePtr storage_manager_ptr) override; | 70 mojom::StorageManagerInstancePtr storage_manager_ptr) override; |
| 71 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; | 71 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; |
| 72 void OnWatchdogInstanceReady( |
| 73 mojom::WatchdogInstancePtr watchdog_ptr) override; |
| 72 void OnWindowManagerInstanceReady( | 74 void OnWindowManagerInstanceReady( |
| 73 mojom::WindowManagerInstancePtr window_manager_ptr) override; | 75 mojom::WindowManagerInstancePtr window_manager_ptr) override; |
| 74 | 76 |
| 75 private: | 77 private: |
| 76 friend class ArcBridgeTest; | 78 friend class ArcBridgeTest; |
| 77 FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Restart); | 79 FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Restart); |
| 78 FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, OnBridgeStopped); | 80 FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, OnBridgeStopped); |
| 79 | 81 |
| 80 // If all pre-requisites are true (ARC is available, it has been enabled, and | 82 // If all pre-requisites are true (ARC is available, it has been enabled, and |
| 81 // the session has started), and ARC is stopped, start ARC. If ARC is running | 83 // the session has started), and ARC is stopped, start ARC. If ARC is running |
| (...skipping 29 matching lines...) Expand all Loading... |
| 111 | 113 |
| 112 // WeakPtrFactory to use callbacks. | 114 // WeakPtrFactory to use callbacks. |
| 113 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_; | 115 base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_; |
| 114 | 116 |
| 115 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl); | 117 DISALLOW_COPY_AND_ASSIGN(ArcBridgeServiceImpl); |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } // namespace arc | 120 } // namespace arc |
| 119 | 121 |
| 120 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ | 122 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_IMPL_H_ |
| OLD | NEW |