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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Merge Created 8 years, 11 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 | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/render_view_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #pragma warning(disable: 4250) 57 #pragma warning(disable: 4250)
58 #endif 58 #endif
59 59
60 class DeviceOrientationDispatcher; 60 class DeviceOrientationDispatcher;
61 class DevToolsAgent; 61 class DevToolsAgent;
62 class ExternalPopupMenu; 62 class ExternalPopupMenu;
63 class GeolocationDispatcher; 63 class GeolocationDispatcher;
64 class GURL; 64 class GURL;
65 class JavaBridgeDispatcher; 65 class JavaBridgeDispatcher;
66 class LoadProgressTracker; 66 class LoadProgressTracker;
67 class MediaStreamDispatcher;
67 class MediaStreamImpl; 68 class MediaStreamImpl;
68 class NotificationProvider; 69 class NotificationProvider;
69 class PepperDeviceTest; 70 class PepperDeviceTest;
70 struct PP_NetAddress_Private; 71 struct PP_NetAddress_Private;
71 class RenderWidgetFullscreenPepper; 72 class RenderWidgetFullscreenPepper;
72 class RendererAccessibility; 73 class RendererAccessibility;
73 class SkBitmap; 74 class SkBitmap;
74 class SpeechInputDispatcher; 75 class SpeechInputDispatcher;
75 struct ViewMsg_Navigate_Params; 76 struct ViewMsg_Navigate_Params;
76 struct ViewMsg_StopFinding_Params; 77 struct ViewMsg_StopFinding_Params;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 class WebApplicationCacheHost; 112 class WebApplicationCacheHost;
112 class WebApplicationCacheHostClient; 113 class WebApplicationCacheHostClient;
113 class WebDataSource; 114 class WebDataSource;
114 class WebDragData; 115 class WebDragData;
115 class WebGeolocationClient; 116 class WebGeolocationClient;
116 class WebIconURL; 117 class WebIconURL;
117 class WebImage; 118 class WebImage;
118 class WebMediaPlayer; 119 class WebMediaPlayer;
119 class WebMediaPlayerClient; 120 class WebMediaPlayerClient;
120 class WebMouseEvent; 121 class WebMouseEvent;
122 class WebPeerConnectionHandler;
123 class WebPeerConnectionHandlerClient;
121 class WebSpeechInputController; 124 class WebSpeechInputController;
122 class WebSpeechInputListener; 125 class WebSpeechInputListener;
123 class WebStorageNamespace; 126 class WebStorageNamespace;
124 class WebTouchEvent; 127 class WebTouchEvent;
125 class WebURLLoader; 128 class WebURLLoader;
126 class WebURLRequest; 129 class WebURLRequest;
130 class WebUserMediaClient;
127 struct WebFileChooserParams; 131 struct WebFileChooserParams;
128 struct WebFindOptions; 132 struct WebFindOptions;
129 struct WebMediaPlayerAction; 133 struct WebMediaPlayerAction;
130 struct WebPluginAction; 134 struct WebPluginAction;
131 struct WebPoint; 135 struct WebPoint;
132 struct WebWindowFeatures; 136 struct WebWindowFeatures;
133 } 137 }
134 138
135 // We need to prevent a page from trying to create infinite popups. It is not 139 // We need to prevent a page from trying to create infinite popups. It is not
136 // as simple as keeping a count of the number of immediate children 140 // as simple as keeping a count of the number of immediate children
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 int history_list_offset() const { return history_list_offset_; } 195 int history_list_offset() const { return history_list_offset_; }
192 196
193 const WebPreferences& webkit_preferences() const { 197 const WebPreferences& webkit_preferences() const {
194 return webkit_preferences_; 198 return webkit_preferences_;
195 } 199 }
196 200
197 void set_send_content_state_immediately(bool value) { 201 void set_send_content_state_immediately(bool value) {
198 send_content_state_immediately_ = value; 202 send_content_state_immediately_ = value;
199 } 203 }
200 204
205 MediaStreamDispatcher* media_stream_dispatcher() {
206 return media_stream_dispatcher_;
207 }
208
201 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 209 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
202 content::P2PSocketDispatcher* p2p_socket_dispatcher() { 210 content::P2PSocketDispatcher* p2p_socket_dispatcher() {
203 return p2p_socket_dispatcher_; 211 return p2p_socket_dispatcher_;
204 } 212 }
205 213
214 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
215 WebKit::WebPeerConnectionHandlerClient* client);
216
206 // Functions to add and remove observers for this object. 217 // Functions to add and remove observers for this object.
207 void AddObserver(content::RenderViewObserver* observer); 218 void AddObserver(content::RenderViewObserver* observer);
208 void RemoveObserver(content::RenderViewObserver* observer); 219 void RemoveObserver(content::RenderViewObserver* observer);
209 220
210 // Adds the given file chooser request to the file_chooser_completion_ queue 221 // Adds the given file chooser request to the file_chooser_completion_ queue
211 // (see that var for more) and requests the chooser be displayed if there are 222 // (see that var for more) and requests the chooser be displayed if there are
212 // no other waiting items in the queue. 223 // no other waiting items in the queue.
213 // 224 //
214 // Returns true if the chooser was successfully scheduled. False means we 225 // Returns true if the chooser was successfully scheduled. False means we
215 // didn't schedule anything. 226 // didn't schedule anything.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 virtual WebKit::WebSpeechInputController* speechInputController( 387 virtual WebKit::WebSpeechInputController* speechInputController(
377 WebKit::WebSpeechInputListener* listener); 388 WebKit::WebSpeechInputListener* listener);
378 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); 389 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
379 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); 390 virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
380 virtual void zoomLevelChanged(); 391 virtual void zoomLevelChanged();
381 virtual void registerProtocolHandler(const WebKit::WebString& scheme, 392 virtual void registerProtocolHandler(const WebKit::WebString& scheme,
382 const WebKit::WebString& base_url, 393 const WebKit::WebString& base_url,
383 const WebKit::WebString& url, 394 const WebKit::WebString& url,
384 const WebKit::WebString& title); 395 const WebKit::WebString& title);
385 virtual WebKit::WebPageVisibilityState visibilityState() const; 396 virtual WebKit::WebPageVisibilityState visibilityState() const;
397 virtual WebKit::WebUserMediaClient* userMediaClient();
386 398
387 // WebKit::WebFrameClient implementation ------------------------------------- 399 // WebKit::WebFrameClient implementation -------------------------------------
388 400
389 virtual WebKit::WebPlugin* createPlugin( 401 virtual WebKit::WebPlugin* createPlugin(
390 WebKit::WebFrame* frame, 402 WebKit::WebFrame* frame,
391 const WebKit::WebPluginParams& params); 403 const WebKit::WebPluginParams& params);
392 virtual WebKit::WebSharedWorker* createSharedWorker( 404 virtual WebKit::WebSharedWorker* createSharedWorker(
393 WebKit::WebFrame* frame, const WebKit::WebURL& url, 405 WebKit::WebFrame* frame, const WebKit::WebURL& url,
394 const WebKit::WebString& name, unsigned long long documentId); 406 const WebKit::WebString& name, unsigned long long documentId);
395 virtual WebKit::WebMediaPlayer* createMediaPlayer( 407 virtual WebKit::WebMediaPlayer* createMediaPlayer(
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x, 873 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x,
862 int zoom_center_y, float scaling_increment); 874 int zoom_center_y, float scaling_increment);
863 875
864 void AltErrorPageFinished(WebKit::WebFrame* frame, 876 void AltErrorPageFinished(WebKit::WebFrame* frame,
865 const WebKit::WebURLError& original_error, 877 const WebKit::WebURLError& original_error,
866 const std::string& html); 878 const std::string& html);
867 879
868 // Check whether the preferred size has changed. 880 // Check whether the preferred size has changed.
869 void CheckPreferredSize(); 881 void CheckPreferredSize();
870 882
883 void EnsureMediaStreamImpl();
884
871 // This callback is triggered when DownloadFavicon completes, either 885 // This callback is triggered when DownloadFavicon completes, either
872 // succesfully or with a failure. See DownloadFavicon for more 886 // succesfully or with a failure. See DownloadFavicon for more
873 // details. 887 // details.
874 void DidDownloadFavicon(webkit_glue::ImageResourceFetcher* fetcher, 888 void DidDownloadFavicon(webkit_glue::ImageResourceFetcher* fetcher,
875 const SkBitmap& image); 889 const SkBitmap& image);
876 890
877 // Requests to download a favicon image. When done, the RenderView is notified 891 // Requests to download a favicon image. When done, the RenderView is notified
878 // by way of DidDownloadFavicon. Returns true if the request was successfully 892 // by way of DidDownloadFavicon. Returns true if the request was successfully
879 // started, false otherwise. id is used to uniquely identify the request and 893 // started, false otherwise. id is used to uniquely identify the request and
880 // passed back to the DidDownloadFavicon method. If the image has multiple 894 // passed back to the DidDownloadFavicon method. If the image has multiple
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 1136
1123 // The intents host attached to this view. Not lazily initialized. 1137 // The intents host attached to this view. Not lazily initialized.
1124 WebIntentsHost* intents_host_; 1138 WebIntentsHost* intents_host_;
1125 1139
1126 // The speech dispatcher attached to this view, lazily initialized. 1140 // The speech dispatcher attached to this view, lazily initialized.
1127 SpeechInputDispatcher* speech_input_dispatcher_; 1141 SpeechInputDispatcher* speech_input_dispatcher_;
1128 1142
1129 // Device orientation dispatcher attached to this view; lazily initialized. 1143 // Device orientation dispatcher attached to this view; lazily initialized.
1130 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1144 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1131 1145
1146 // MediaStream dispatcher attached to this view; lazily initialized.
1147 MediaStreamDispatcher* media_stream_dispatcher_;
1148
1132 // MediaStreamImpl attached to this view; lazily initialized. 1149 // MediaStreamImpl attached to this view; lazily initialized.
1133 scoped_refptr<MediaStreamImpl> media_stream_impl_; 1150 scoped_refptr<MediaStreamImpl> media_stream_impl_;
1134 1151
1135 // Dispatches all P2P socket used by the renderer. 1152 // Dispatches all P2P socket used by the renderer.
1136 content::P2PSocketDispatcher* p2p_socket_dispatcher_; 1153 content::P2PSocketDispatcher* p2p_socket_dispatcher_;
1137 1154
1138 DevToolsAgent* devtools_agent_; 1155 DevToolsAgent* devtools_agent_;
1139 1156
1140 RendererAccessibility* renderer_accessibility_; 1157 RendererAccessibility* renderer_accessibility_;
1141 1158
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 // bunch of stuff, you should probably create a helper class and put your 1239 // bunch of stuff, you should probably create a helper class and put your
1223 // data and methods on that to avoid bloating RenderView more. You can 1240 // data and methods on that to avoid bloating RenderView more. You can
1224 // use the Observer interface to filter IPC messages and receive frame change 1241 // use the Observer interface to filter IPC messages and receive frame change
1225 // notifications. 1242 // notifications.
1226 // --------------------------------------------------------------------------- 1243 // ---------------------------------------------------------------------------
1227 1244
1228 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1245 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1229 }; 1246 };
1230 1247
1231 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1248 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698