Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: components/arc/arc_bridge_host_impl.h

Issue 2400163003: arc: enable Android tracing in verified-boot mode (Closed)
Patch Set: Fix according to comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override; 68 void OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override;
69 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; 69 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override;
70 void OnStorageManagerInstanceReady( 70 void OnStorageManagerInstanceReady(
71 mojom::StorageManagerInstancePtr storage_manager_ptr) override; 71 mojom::StorageManagerInstancePtr storage_manager_ptr) override;
72 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override; 72 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override;
73 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; 73 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override;
74 void OnWallpaperInstanceReady( 74 void OnWallpaperInstanceReady(
75 mojom::WallpaperInstancePtr wallpaper_ptr) override; 75 mojom::WallpaperInstancePtr wallpaper_ptr) override;
76 void OnTraceInstanceReady(mojom::TraceInstancePtr trace_ptr) override;
Yusuke Sato 2017/01/04 23:55:48 please sort
Earl Ou 2017/01/16 14:05:45 Done.
76 77
77 private: 78 private:
78 // Called when the bridge channel is closed. This typically only happens when 79 // Called when the bridge channel is closed. This typically only happens when
79 // the ARC instance crashes. 80 // the ARC instance crashes.
80 void OnClosed(); 81 void OnClosed();
81 82
82 // The common implementation to handle ArcBridgeHost overrides. 83 // The common implementation to handle ArcBridgeHost overrides.
83 // |T| is a ARC Mojo Instance type. 84 // |T| is a ARC Mojo Instance type.
84 template <typename T> 85 template <typename T>
85 void OnInstanceReady(InstanceHolder<T>* holder, mojo::InterfacePtr<T> ptr); 86 void OnInstanceReady(InstanceHolder<T>* holder, mojo::InterfacePtr<T> ptr);
(...skipping 12 matching lines...) Expand all
98 // Put as a last member to ensure that any callback tied to the elements 99 // Put as a last member to ensure that any callback tied to the elements
99 // is not invoked. 100 // is not invoked.
100 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; 101 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); 103 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl);
103 }; 104 };
104 105
105 } // namespace arc 106 } // namespace arc
106 107
107 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ 108 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698