OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #endif | 56 #endif |
57 | 57 |
58 class DeviceOrientationDispatcher; | 58 class DeviceOrientationDispatcher; |
59 class DevToolsAgent; | 59 class DevToolsAgent; |
60 class ExternalPopupMenu; | 60 class ExternalPopupMenu; |
61 class GeolocationDispatcher; | 61 class GeolocationDispatcher; |
62 class GURL; | 62 class GURL; |
63 class IntentsDispatcher; | 63 class IntentsDispatcher; |
64 class JavaBridgeDispatcher; | 64 class JavaBridgeDispatcher; |
65 class LoadProgressTracker; | 65 class LoadProgressTracker; |
| 66 class MediaStreamDispatcher; |
66 class MediaStreamImpl; | 67 class MediaStreamImpl; |
67 class NotificationProvider; | 68 class NotificationProvider; |
68 class PepperDeviceTest; | 69 class PepperDeviceTest; |
69 struct PP_NetAddress_Private; | 70 struct PP_NetAddress_Private; |
70 class RenderWidgetFullscreenPepper; | 71 class RenderWidgetFullscreenPepper; |
71 class RendererAccessibility; | 72 class RendererAccessibility; |
72 class SkBitmap; | 73 class SkBitmap; |
73 class SpeechInputDispatcher; | 74 class SpeechInputDispatcher; |
74 struct ViewMsg_Navigate_Params; | 75 struct ViewMsg_Navigate_Params; |
75 struct ViewMsg_StopFinding_Params; | 76 struct ViewMsg_StopFinding_Params; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 196 |
196 void set_send_content_state_immediately(bool value) { | 197 void set_send_content_state_immediately(bool value) { |
197 send_content_state_immediately_ = value; | 198 send_content_state_immediately_ = value; |
198 } | 199 } |
199 | 200 |
200 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 201 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
201 content::P2PSocketDispatcher* p2p_socket_dispatcher() { | 202 content::P2PSocketDispatcher* p2p_socket_dispatcher() { |
202 return p2p_socket_dispatcher_; | 203 return p2p_socket_dispatcher_; |
203 } | 204 } |
204 | 205 |
| 206 MediaStreamDispatcher* media_stream_dispatcher() { |
| 207 return media_stream_dispatcher_; |
| 208 } |
| 209 |
205 // Functions to add and remove observers for this object. | 210 // Functions to add and remove observers for this object. |
206 void AddObserver(content::RenderViewObserver* observer); | 211 void AddObserver(content::RenderViewObserver* observer); |
207 void RemoveObserver(content::RenderViewObserver* observer); | 212 void RemoveObserver(content::RenderViewObserver* observer); |
208 | 213 |
209 // Adds the given file chooser request to the file_chooser_completion_ queue | 214 // Adds the given file chooser request to the file_chooser_completion_ queue |
210 // (see that var for more) and requests the chooser be displayed if there are | 215 // (see that var for more) and requests the chooser be displayed if there are |
211 // no other waiting items in the queue. | 216 // no other waiting items in the queue. |
212 // | 217 // |
213 // Returns true if the chooser was successfully scheduled. False means we | 218 // Returns true if the chooser was successfully scheduled. False means we |
214 // didn't schedule anything. | 219 // didn't schedule anything. |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1135 | 1140 |
1136 // The intents dispatcher attached to this view. Not lazily initialized. | 1141 // The intents dispatcher attached to this view. Not lazily initialized. |
1137 IntentsDispatcher* intents_dispatcher_; | 1142 IntentsDispatcher* intents_dispatcher_; |
1138 | 1143 |
1139 // The speech dispatcher attached to this view, lazily initialized. | 1144 // The speech dispatcher attached to this view, lazily initialized. |
1140 SpeechInputDispatcher* speech_input_dispatcher_; | 1145 SpeechInputDispatcher* speech_input_dispatcher_; |
1141 | 1146 |
1142 // Device orientation dispatcher attached to this view; lazily initialized. | 1147 // Device orientation dispatcher attached to this view; lazily initialized. |
1143 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1148 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1144 | 1149 |
| 1150 // MediaStream dispatcher attached to this view; lazily initialized. |
| 1151 MediaStreamDispatcher* media_stream_dispatcher_; |
| 1152 |
1145 // MediaStreamImpl attached to this view; lazily initialized. | 1153 // MediaStreamImpl attached to this view; lazily initialized. |
1146 scoped_refptr<MediaStreamImpl> media_stream_impl_; | 1154 scoped_refptr<MediaStreamImpl> media_stream_impl_; |
1147 | 1155 |
1148 // Dispatches all P2P socket used by the renderer. | 1156 // Dispatches all P2P socket used by the renderer. |
1149 content::P2PSocketDispatcher* p2p_socket_dispatcher_; | 1157 content::P2PSocketDispatcher* p2p_socket_dispatcher_; |
1150 | 1158 |
1151 DevToolsAgent* devtools_agent_; | 1159 DevToolsAgent* devtools_agent_; |
1152 | 1160 |
1153 RendererAccessibility* renderer_accessibility_; | 1161 RendererAccessibility* renderer_accessibility_; |
1154 | 1162 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 // bunch of stuff, you should probably create a helper class and put your | 1227 // bunch of stuff, you should probably create a helper class and put your |
1220 // data and methods on that to avoid bloating RenderView more. You can | 1228 // data and methods on that to avoid bloating RenderView more. You can |
1221 // use the Observer interface to filter IPC messages and receive frame change | 1229 // use the Observer interface to filter IPC messages and receive frame change |
1222 // notifications. | 1230 // notifications. |
1223 // --------------------------------------------------------------------------- | 1231 // --------------------------------------------------------------------------- |
1224 | 1232 |
1225 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1233 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1226 }; | 1234 }; |
1227 | 1235 |
1228 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1236 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |