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

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

Issue 2264743002: cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change instance getter / setter in SetWallpaperDelegate to snake_case. Created 4 years, 3 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
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/arc_bridge_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnPrintInstanceReady(mojom::PrintInstancePtr print_ptr) override;
63 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override; 63 void OnProcessInstanceReady(mojom::ProcessInstancePtr process_ptr) override;
64 void OnStorageManagerInstanceReady( 64 void OnStorageManagerInstanceReady(
65 mojom::StorageManagerInstancePtr storage_manager_ptr) override; 65 mojom::StorageManagerInstancePtr storage_manager_ptr) override;
66 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override; 66 void OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) override;
67 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override; 67 void OnVideoInstanceReady(mojom::VideoInstancePtr video_ptr) override;
68 void OnWallpaperInstanceReady(
69 mojom::WallpaperInstancePtr wallpaper_ptr) override;
68 70
69 private: 71 private:
70 // Called when the bridge channel is closed. This typically only happens when 72 // Called when the bridge channel is closed. This typically only happens when
71 // the ARC instance crashes. 73 // the ARC instance crashes.
72 void OnClosed(); 74 void OnClosed();
73 75
74 // The common implementation to handle ArcBridgeHost overrides. 76 // The common implementation to handle ArcBridgeHost overrides.
75 // |T| is a ARC Mojo Instance type. 77 // |T| is a ARC Mojo Instance type.
76 template <typename T> 78 template <typename T>
77 void OnInstanceReady(InstanceHolder<T>* holder, mojo::InterfacePtr<T> ptr); 79 void OnInstanceReady(InstanceHolder<T>* holder, mojo::InterfacePtr<T> ptr);
78 80
79 // Called if one of the established channels is closed. 81 // Called if one of the established channels is closed.
80 void OnChannelClosed(MojoChannel* channel); 82 void OnChannelClosed(MojoChannel* channel);
81 83
82 base::ThreadChecker thread_checker_; 84 base::ThreadChecker thread_checker_;
83 85
84 mojo::Binding<mojom::ArcBridgeHost> binding_; 86 mojo::Binding<mojom::ArcBridgeHost> binding_;
85 mojom::ArcBridgeInstancePtr instance_; 87 mojom::ArcBridgeInstancePtr instance_;
86 88
87 // Put as a last member to ensure that any callback tied to the elements 89 // Put as a last member to ensure that any callback tied to the elements
88 // is not invoked. 90 // is not invoked.
89 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_; 91 std::vector<std::unique_ptr<MojoChannel>> mojo_channels_;
90 92
91 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl); 93 DISALLOW_COPY_AND_ASSIGN(ArcBridgeHostImpl);
92 }; 94 };
93 95
94 } // namespace arc 96 } // namespace arc
95 97
96 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_ 98 #endif // COMPONENTS_ARC_ARC_BRIDGE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/arc_bridge_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698