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

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

Issue 2808383004: Refactor and send voice interaction structure (Closed)
Patch Set: fix window build Created 3 years, 8 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/arc_bridge_host_impl.cc ('k') | components/arc/common/arc_bridge.mojom » ('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 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_H_ 5 #ifndef COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 6 #define COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/arc/instance_holder.h" 9 #include "components/arc/instance_holder.h"
10 10
(...skipping 21 matching lines...) Expand all
32 class NotificationsInstance; 32 class NotificationsInstance;
33 class ObbMounterInstance; 33 class ObbMounterInstance;
34 class PolicyInstance; 34 class PolicyInstance;
35 class PowerInstance; 35 class PowerInstance;
36 class PrintInstance; 36 class PrintInstance;
37 class ProcessInstance; 37 class ProcessInstance;
38 class StorageManagerInstance; 38 class StorageManagerInstance;
39 class TracingInstance; 39 class TracingInstance;
40 class TtsInstance; 40 class TtsInstance;
41 class VideoInstance; 41 class VideoInstance;
42 class VoiceInteractionArcHomeInstance;
42 class VoiceInteractionFrameworkInstance; 43 class VoiceInteractionFrameworkInstance;
43 class WallpaperInstance; 44 class WallpaperInstance;
44 45
45 } // namespace mojom 46 } // namespace mojom
46 47
47 // Holds Mojo channels which proxy to ARC side implementation. The actual 48 // Holds Mojo channels which proxy to ARC side implementation. The actual
48 // instances are set/removed via ArcBridgeHostImpl. 49 // instances are set/removed via ArcBridgeHostImpl.
49 class ArcBridgeService { 50 class ArcBridgeService {
50 public: 51 public:
51 ArcBridgeService(); 52 ArcBridgeService();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 InstanceHolder<mojom::PolicyInstance>* policy() { return &policy_; } 88 InstanceHolder<mojom::PolicyInstance>* policy() { return &policy_; }
88 InstanceHolder<mojom::PowerInstance>* power() { return &power_; } 89 InstanceHolder<mojom::PowerInstance>* power() { return &power_; }
89 InstanceHolder<mojom::PrintInstance>* print() { return &print_; } 90 InstanceHolder<mojom::PrintInstance>* print() { return &print_; }
90 InstanceHolder<mojom::ProcessInstance>* process() { return &process_; } 91 InstanceHolder<mojom::ProcessInstance>* process() { return &process_; }
91 InstanceHolder<mojom::StorageManagerInstance>* storage_manager() { 92 InstanceHolder<mojom::StorageManagerInstance>* storage_manager() {
92 return &storage_manager_; 93 return &storage_manager_;
93 } 94 }
94 InstanceHolder<mojom::TracingInstance>* tracing() { return &tracing_; } 95 InstanceHolder<mojom::TracingInstance>* tracing() { return &tracing_; }
95 InstanceHolder<mojom::TtsInstance>* tts() { return &tts_; } 96 InstanceHolder<mojom::TtsInstance>* tts() { return &tts_; }
96 InstanceHolder<mojom::VideoInstance>* video() { return &video_; } 97 InstanceHolder<mojom::VideoInstance>* video() { return &video_; }
98 InstanceHolder<mojom::VoiceInteractionArcHomeInstance>*
99 voice_interaction_arc_home() {
100 return &voice_interaction_arc_home_;
101 }
97 InstanceHolder<mojom::VoiceInteractionFrameworkInstance>* 102 InstanceHolder<mojom::VoiceInteractionFrameworkInstance>*
98 voice_interaction_framework() { 103 voice_interaction_framework() {
99 return &voice_interaction_framework_; 104 return &voice_interaction_framework_;
100 } 105 }
101 InstanceHolder<mojom::WallpaperInstance>* wallpaper() { return &wallpaper_; } 106 InstanceHolder<mojom::WallpaperInstance>* wallpaper() { return &wallpaper_; }
102 107
103 private: 108 private:
104 InstanceHolder<mojom::AccessibilityHelperInstance> accessibility_helper_; 109 InstanceHolder<mojom::AccessibilityHelperInstance> accessibility_helper_;
105 InstanceHolder<mojom::AppInstance> app_; 110 InstanceHolder<mojom::AppInstance> app_;
106 InstanceHolder<mojom::AudioInstance> audio_; 111 InstanceHolder<mojom::AudioInstance> audio_;
(...skipping 12 matching lines...) Expand all
119 InstanceHolder<mojom::NotificationsInstance> notifications_; 124 InstanceHolder<mojom::NotificationsInstance> notifications_;
120 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_; 125 InstanceHolder<mojom::ObbMounterInstance> obb_mounter_;
121 InstanceHolder<mojom::PolicyInstance> policy_; 126 InstanceHolder<mojom::PolicyInstance> policy_;
122 InstanceHolder<mojom::PowerInstance> power_; 127 InstanceHolder<mojom::PowerInstance> power_;
123 InstanceHolder<mojom::PrintInstance> print_; 128 InstanceHolder<mojom::PrintInstance> print_;
124 InstanceHolder<mojom::ProcessInstance> process_; 129 InstanceHolder<mojom::ProcessInstance> process_;
125 InstanceHolder<mojom::StorageManagerInstance> storage_manager_; 130 InstanceHolder<mojom::StorageManagerInstance> storage_manager_;
126 InstanceHolder<mojom::TracingInstance> tracing_; 131 InstanceHolder<mojom::TracingInstance> tracing_;
127 InstanceHolder<mojom::TtsInstance> tts_; 132 InstanceHolder<mojom::TtsInstance> tts_;
128 InstanceHolder<mojom::VideoInstance> video_; 133 InstanceHolder<mojom::VideoInstance> video_;
134 InstanceHolder<mojom::VoiceInteractionArcHomeInstance>
135 voice_interaction_arc_home_;
129 InstanceHolder<mojom::VoiceInteractionFrameworkInstance> 136 InstanceHolder<mojom::VoiceInteractionFrameworkInstance>
130 voice_interaction_framework_; 137 voice_interaction_framework_;
131 InstanceHolder<mojom::WallpaperInstance> wallpaper_; 138 InstanceHolder<mojom::WallpaperInstance> wallpaper_;
132 139
133 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService); 140 DISALLOW_COPY_AND_ASSIGN(ArcBridgeService);
134 }; 141 };
135 142
136 } // namespace arc 143 } // namespace arc
137 144
138 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_ 145 #endif // COMPONENTS_ARC_ARC_BRIDGE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_host_impl.cc ('k') | components/arc/common/arc_bridge.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698