| 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 | 56 |
| 57 class AudioMessageFilter; | 57 class AudioMessageFilter; |
| 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 class PrintWebViewHelper; | 70 class PrintWebViewHelper; |
| 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 class WebPluginDelegateProxy; | 75 class WebPluginDelegateProxy; |
| 75 class WebUIBindings; | 76 class WebUIBindings; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 class WebDragData; | 125 class WebDragData; |
| 125 class WebGeolocationClient; | 126 class WebGeolocationClient; |
| 126 class WebGeolocationServiceInterface; | 127 class WebGeolocationServiceInterface; |
| 127 class WebIconURL; | 128 class WebIconURL; |
| 128 class WebImage; | 129 class WebImage; |
| 129 class WebInputElement; | 130 class WebInputElement; |
| 130 class WebKeyboardEvent; | 131 class WebKeyboardEvent; |
| 131 class WebMediaPlayer; | 132 class WebMediaPlayer; |
| 132 class WebMediaPlayerClient; | 133 class WebMediaPlayerClient; |
| 133 class WebMouseEvent; | 134 class WebMouseEvent; |
| 135 class WebPeerConnectionHandler; |
| 136 class WebPeerConnectionHandlerClient; |
| 134 class WebSpeechInputController; | 137 class WebSpeechInputController; |
| 135 class WebSpeechInputListener; | 138 class WebSpeechInputListener; |
| 136 class WebStorageNamespace; | 139 class WebStorageNamespace; |
| 137 class WebTouchEvent; | 140 class WebTouchEvent; |
| 138 class WebURLLoader; | 141 class WebURLLoader; |
| 139 class WebURLRequest; | 142 class WebURLRequest; |
| 140 struct WebFileChooserParams; | 143 struct WebFileChooserParams; |
| 141 struct WebFindOptions; | 144 struct WebFindOptions; |
| 142 struct WebMediaPlayerAction; | 145 struct WebMediaPlayerAction; |
| 143 struct WebPoint; | 146 struct WebPoint; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 CONTENT_EXPORT WebKit::WebView* webview() const; | 200 CONTENT_EXPORT WebKit::WebView* webview() const; |
| 198 | 201 |
| 199 // Called by a GraphicsContext associated with this view when swapbuffers | 202 // Called by a GraphicsContext associated with this view when swapbuffers |
| 200 // is posted, completes or is aborted. | 203 // is posted, completes or is aborted. |
| 201 void OnViewContextSwapBuffersPosted(); | 204 void OnViewContextSwapBuffersPosted(); |
| 202 void OnViewContextSwapBuffersComplete(); | 205 void OnViewContextSwapBuffersComplete(); |
| 203 void OnViewContextSwapBuffersAborted(); | 206 void OnViewContextSwapBuffersAborted(); |
| 204 | 207 |
| 205 int history_list_offset() const { return history_list_offset_; } | 208 int history_list_offset() const { return history_list_offset_; } |
| 206 | 209 |
| 210 MediaStreamDispatcher* media_stream_dispatcher() { |
| 211 return media_stream_dispatcher_; |
| 212 } |
| 213 |
| 207 const WebPreferences& webkit_preferences() const { | 214 const WebPreferences& webkit_preferences() const { |
| 208 return webkit_preferences_; | 215 return webkit_preferences_; |
| 209 } | 216 } |
| 210 | 217 |
| 211 void set_send_content_state_immediately(bool value) { | 218 void set_send_content_state_immediately(bool value) { |
| 212 send_content_state_immediately_ = value; | 219 send_content_state_immediately_ = value; |
| 213 } | 220 } |
| 214 | 221 |
| 215 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. | 222 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. |
| 216 content::P2PSocketDispatcher* p2p_socket_dispatcher() { | 223 content::P2PSocketDispatcher* p2p_socket_dispatcher() { |
| 217 return p2p_socket_dispatcher_; | 224 return p2p_socket_dispatcher_; |
| 218 } | 225 } |
| 219 | 226 |
| 227 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler( |
| 228 WebKit::WebPeerConnectionHandlerClient* client); |
| 229 |
| 220 // Functions to add and remove observers for this object. | 230 // Functions to add and remove observers for this object. |
| 221 void AddObserver(content::RenderViewObserver* observer); | 231 void AddObserver(content::RenderViewObserver* observer); |
| 222 void RemoveObserver(content::RenderViewObserver* observer); | 232 void RemoveObserver(content::RenderViewObserver* observer); |
| 223 | 233 |
| 224 // Adds the given file chooser request to the file_chooser_completion_ queue | 234 // Adds the given file chooser request to the file_chooser_completion_ queue |
| 225 // (see that var for more) and requests the chooser be displayed if there are | 235 // (see that var for more) and requests the chooser be displayed if there are |
| 226 // no other waiting items in the queue. | 236 // no other waiting items in the queue. |
| 227 // | 237 // |
| 228 // Returns true if the chooser was successfully scheduled. False means we | 238 // Returns true if the chooser was successfully scheduled. False means we |
| 229 // didn't schedule anything. | 239 // didn't schedule anything. |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 | 1154 |
| 1145 // The intents dispatcher attached to this view. Not lazily initialized. | 1155 // The intents dispatcher attached to this view. Not lazily initialized. |
| 1146 IntentsDispatcher* intents_dispatcher_; | 1156 IntentsDispatcher* intents_dispatcher_; |
| 1147 | 1157 |
| 1148 // The speech dispatcher attached to this view, lazily initialized. | 1158 // The speech dispatcher attached to this view, lazily initialized. |
| 1149 SpeechInputDispatcher* speech_input_dispatcher_; | 1159 SpeechInputDispatcher* speech_input_dispatcher_; |
| 1150 | 1160 |
| 1151 // Device orientation dispatcher attached to this view; lazily initialized. | 1161 // Device orientation dispatcher attached to this view; lazily initialized. |
| 1152 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1162 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
| 1153 | 1163 |
| 1164 // MediaStream dispatcher attached to this view; lazily initialized. |
| 1165 MediaStreamDispatcher* media_stream_dispatcher_; |
| 1166 |
| 1154 // MediaStreamImpl attached to this view; lazily initialized. | 1167 // MediaStreamImpl attached to this view; lazily initialized. |
| 1155 scoped_refptr<MediaStreamImpl> media_stream_impl_; | 1168 scoped_refptr<MediaStreamImpl> media_stream_impl_; |
| 1156 | 1169 |
| 1157 // Dispatches all P2P socket used by the renderer. | 1170 // Dispatches all P2P socket used by the renderer. |
| 1158 content::P2PSocketDispatcher* p2p_socket_dispatcher_; | 1171 content::P2PSocketDispatcher* p2p_socket_dispatcher_; |
| 1159 | 1172 |
| 1160 DevToolsAgent* devtools_agent_; | 1173 DevToolsAgent* devtools_agent_; |
| 1161 | 1174 |
| 1162 RendererAccessibility* renderer_accessibility_; | 1175 RendererAccessibility* renderer_accessibility_; |
| 1163 | 1176 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 // bunch of stuff, you should probably create a helper class and put your | 1241 // bunch of stuff, you should probably create a helper class and put your |
| 1229 // data and methods on that to avoid bloating RenderView more. You can | 1242 // data and methods on that to avoid bloating RenderView more. You can |
| 1230 // use the Observer interface to filter IPC messages and receive frame change | 1243 // use the Observer interface to filter IPC messages and receive frame change |
| 1231 // notifications. | 1244 // notifications. |
| 1232 // --------------------------------------------------------------------------- | 1245 // --------------------------------------------------------------------------- |
| 1233 | 1246 |
| 1234 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1247 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1235 }; | 1248 }; |
| 1236 | 1249 |
| 1237 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1250 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |