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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 class AudioMessageFilter; | 56 class AudioMessageFilter; |
57 class DeviceOrientationDispatcher; | 57 class DeviceOrientationDispatcher; |
58 class DevToolsAgent; | 58 class DevToolsAgent; |
59 class ExternalPopupMenu; | 59 class ExternalPopupMenu; |
60 class FilePath; | 60 class FilePath; |
61 class GeolocationDispatcher; | 61 class GeolocationDispatcher; |
62 class GURL; | 62 class GURL; |
63 class IntentsDispatcher; | 63 class IntentsDispatcher; |
64 class LoadProgressTracker; | 64 class LoadProgressTracker; |
| 65 class MediaStreamDispatcher; |
65 class MediaStreamImpl; | 66 class MediaStreamImpl; |
66 class NavigationState; | 67 class NavigationState; |
67 class NotificationProvider; | 68 class NotificationProvider; |
68 class PepperDeviceTest; | 69 class PepperDeviceTest; |
69 class PrintWebViewHelper; | 70 class PrintWebViewHelper; |
70 class RenderViewObserver; | 71 class RenderViewObserver; |
71 class RenderViewVisitor; | 72 class RenderViewVisitor; |
72 class RenderWidgetFullscreenPepper; | 73 class RenderWidgetFullscreenPepper; |
73 class RendererAccessibility; | 74 class RendererAccessibility; |
74 class SkBitmap; | 75 class SkBitmap; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // Called by a GraphicsContext associated with this view when swapbuffers | 205 // Called by a GraphicsContext associated with this view when swapbuffers |
205 // is posted, completes or is aborted. | 206 // is posted, completes or is aborted. |
206 void OnViewContextSwapBuffersPosted(); | 207 void OnViewContextSwapBuffersPosted(); |
207 void OnViewContextSwapBuffersComplete(); | 208 void OnViewContextSwapBuffersComplete(); |
208 void OnViewContextSwapBuffersAborted(); | 209 void OnViewContextSwapBuffersAborted(); |
209 | 210 |
210 int page_id() const { return page_id_; } | 211 int page_id() const { return page_id_; } |
211 int history_list_offset() const { return history_list_offset_; } | 212 int history_list_offset() const { return history_list_offset_; } |
212 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } | 213 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } |
213 | 214 |
| 215 MediaStreamDispatcher* media_stream_dispatcher() { |
| 216 return media_stream_dispatcher_; |
| 217 } |
| 218 |
214 const WebPreferences& webkit_preferences() const { | 219 const WebPreferences& webkit_preferences() const { |
215 return webkit_preferences_; | 220 return webkit_preferences_; |
216 } | 221 } |
217 | 222 |
218 bool content_state_immediately() { return send_content_state_immediately_; } | 223 bool content_state_immediately() { return send_content_state_immediately_; } |
219 int enabled_bindings() const { return enabled_bindings_; } | 224 int enabled_bindings() const { return enabled_bindings_; } |
220 void set_enabled_bindings(int b) { enabled_bindings_ = b; } | 225 void set_enabled_bindings(int b) { enabled_bindings_ = b; } |
221 void set_send_content_state_immediately(bool value) { | 226 void set_send_content_state_immediately(bool value) { |
222 send_content_state_immediately_ = value; | 227 send_content_state_immediately_ = value; |
223 } | 228 } |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 virtual int historyForwardListCount(); | 438 virtual int historyForwardListCount(); |
434 virtual void postAccessibilityNotification( | 439 virtual void postAccessibilityNotification( |
435 const WebKit::WebAccessibilityObject& obj, | 440 const WebKit::WebAccessibilityObject& obj, |
436 WebKit::WebAccessibilityNotification notification); | 441 WebKit::WebAccessibilityNotification notification); |
437 virtual void didUpdateInspectorSetting(const WebKit::WebString& key, | 442 virtual void didUpdateInspectorSetting(const WebKit::WebString& key, |
438 const WebKit::WebString& value); | 443 const WebKit::WebString& value); |
439 virtual WebKit::WebGeolocationClient* geolocationClient(); | 444 virtual WebKit::WebGeolocationClient* geolocationClient(); |
440 virtual WebKit::WebSpeechInputController* speechInputController( | 445 virtual WebKit::WebSpeechInputController* speechInputController( |
441 WebKit::WebSpeechInputListener* listener); | 446 WebKit::WebSpeechInputListener* listener); |
442 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); | 447 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); |
| 448 virtual WebKit::WebMediaStreamClient* mediaStreamClient(); |
443 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); | 449 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); |
444 virtual void zoomLevelChanged(); | 450 virtual void zoomLevelChanged(); |
445 virtual void registerProtocolHandler(const WebKit::WebString& scheme, | 451 virtual void registerProtocolHandler(const WebKit::WebString& scheme, |
446 const WebKit::WebString& base_url, | 452 const WebKit::WebString& base_url, |
447 const WebKit::WebString& url, | 453 const WebKit::WebString& url, |
448 const WebKit::WebString& title); | 454 const WebKit::WebString& title); |
449 virtual void registerIntentHandler(const WebKit::WebString& action, | 455 virtual void registerIntentHandler(const WebKit::WebString& action, |
450 const WebKit::WebString& type, | 456 const WebKit::WebString& type, |
451 const WebKit::WebString& href, | 457 const WebKit::WebString& href, |
452 const WebKit::WebString& title); | 458 const WebKit::WebString& title); |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 | 1149 |
1144 // The intents dispatcher attached to this view. Not lazily initialized. | 1150 // The intents dispatcher attached to this view. Not lazily initialized. |
1145 IntentsDispatcher* intents_dispatcher_; | 1151 IntentsDispatcher* intents_dispatcher_; |
1146 | 1152 |
1147 // The speech dispatcher attached to this view, lazily initialized. | 1153 // The speech dispatcher attached to this view, lazily initialized. |
1148 SpeechInputDispatcher* speech_input_dispatcher_; | 1154 SpeechInputDispatcher* speech_input_dispatcher_; |
1149 | 1155 |
1150 // Device orientation dispatcher attached to this view; lazily initialized. | 1156 // Device orientation dispatcher attached to this view; lazily initialized. |
1151 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1157 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1152 | 1158 |
| 1159 // MediaStream dispatcher attached to this view; lazily initialized. |
| 1160 MediaStreamDispatcher* media_stream_dispatcher_; |
| 1161 |
1153 // MediaStreamImpl attached to this view; lazily initialized. | 1162 // MediaStreamImpl attached to this view; lazily initialized. |
1154 scoped_refptr<MediaStreamImpl> media_stream_impl_; | 1163 scoped_refptr<MediaStreamImpl> media_stream_impl_; |
1155 | 1164 |
1156 // Dispatches all P2P socket used by the renderer. | 1165 // Dispatches all P2P socket used by the renderer. |
1157 content::P2PSocketDispatcher* p2p_socket_dispatcher_; | 1166 content::P2PSocketDispatcher* p2p_socket_dispatcher_; |
1158 | 1167 |
1159 DevToolsAgent* devtools_agent_; | 1168 DevToolsAgent* devtools_agent_; |
1160 | 1169 |
1161 RendererAccessibility* renderer_accessibility_; | 1170 RendererAccessibility* renderer_accessibility_; |
1162 | 1171 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 // bunch of stuff, you should probably create a helper class and put your | 1233 // bunch of stuff, you should probably create a helper class and put your |
1225 // data and methods on that to avoid bloating RenderView more. You can use | 1234 // data and methods on that to avoid bloating RenderView more. You can use |
1226 // the Observer interface to filter IPC messages and receive frame change | 1235 // the Observer interface to filter IPC messages and receive frame change |
1227 // notifications. | 1236 // notifications. |
1228 // --------------------------------------------------------------------------- | 1237 // --------------------------------------------------------------------------- |
1229 | 1238 |
1230 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1239 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1231 }; | 1240 }; |
1232 | 1241 |
1233 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1242 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |