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

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

Issue 7990004: Adding support for MediaStream and PeerConnection functionality. (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Created 9 years, 3 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
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 FilePath; 61 class FilePath;
62 class GeolocationDispatcher; 62 class GeolocationDispatcher;
63 class GURL; 63 class GURL;
64 class IntentsDispatcher; 64 class IntentsDispatcher;
65 class LoadProgressTracker; 65 class LoadProgressTracker;
66 class MediaStreamDispatcher;
66 class MediaStreamImpl; 67 class MediaStreamImpl;
67 class NavigationState; 68 class NavigationState;
68 class NotificationProvider; 69 class NotificationProvider;
69 class PepperDeviceTest; 70 class PepperDeviceTest;
70 class PrintWebViewHelper; 71 class PrintWebViewHelper;
71 class RenderViewObserver; 72 class RenderViewObserver;
72 class RenderViewVisitor; 73 class RenderViewVisitor;
73 class RenderWidgetFullscreenPepper; 74 class RenderWidgetFullscreenPepper;
74 class SkBitmap; 75 class SkBitmap;
75 class SpeechInputDispatcher; 76 class SpeechInputDispatcher;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Called by a GraphicsContext associated with this view when swapbuffers 207 // Called by a GraphicsContext associated with this view when swapbuffers
207 // is posted, completes or is aborted. 208 // is posted, completes or is aborted.
208 void OnViewContextSwapBuffersPosted(); 209 void OnViewContextSwapBuffersPosted();
209 void OnViewContextSwapBuffersComplete(); 210 void OnViewContextSwapBuffersComplete();
210 void OnViewContextSwapBuffersAborted(); 211 void OnViewContextSwapBuffersAborted();
211 212
212 int page_id() const { return page_id_; } 213 int page_id() const { return page_id_; }
213 int history_list_offset() const { return history_list_offset_; } 214 int history_list_offset() const { return history_list_offset_; }
214 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } 215 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; }
215 216
217 MediaStreamDispatcher* media_stream_dispatcher() {
218 return media_stream_dispatcher_;
219 }
220
216 const WebPreferences& webkit_preferences() const { 221 const WebPreferences& webkit_preferences() const {
217 return webkit_preferences_; 222 return webkit_preferences_;
218 } 223 }
219 224
220 bool content_state_immediately() { return send_content_state_immediately_; } 225 bool content_state_immediately() { return send_content_state_immediately_; }
221 int enabled_bindings() const { return enabled_bindings_; } 226 int enabled_bindings() const { return enabled_bindings_; }
222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } 227 void set_enabled_bindings(int b) { enabled_bindings_ = b; }
223 void set_send_content_state_immediately(bool value) { 228 void set_send_content_state_immediately(bool value) {
224 send_content_state_immediately_ = value; 229 send_content_state_immediately_ = value;
225 } 230 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 virtual int historyForwardListCount(); 440 virtual int historyForwardListCount();
436 virtual void postAccessibilityNotification( 441 virtual void postAccessibilityNotification(
437 const WebKit::WebAccessibilityObject& obj, 442 const WebKit::WebAccessibilityObject& obj,
438 WebKit::WebAccessibilityNotification notification); 443 WebKit::WebAccessibilityNotification notification);
439 virtual void didUpdateInspectorSetting(const WebKit::WebString& key, 444 virtual void didUpdateInspectorSetting(const WebKit::WebString& key,
440 const WebKit::WebString& value); 445 const WebKit::WebString& value);
441 virtual WebKit::WebGeolocationClient* geolocationClient(); 446 virtual WebKit::WebGeolocationClient* geolocationClient();
442 virtual WebKit::WebSpeechInputController* speechInputController( 447 virtual WebKit::WebSpeechInputController* speechInputController(
443 WebKit::WebSpeechInputListener* listener); 448 WebKit::WebSpeechInputListener* listener);
444 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); 449 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient();
450 virtual WebKit::WebMediaStreamClient* mediaStreamClient();
445 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); 451 virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
446 virtual void zoomLevelChanged(); 452 virtual void zoomLevelChanged();
447 virtual void registerProtocolHandler(const WebKit::WebString& scheme, 453 virtual void registerProtocolHandler(const WebKit::WebString& scheme,
448 const WebKit::WebString& base_url, 454 const WebKit::WebString& base_url,
449 const WebKit::WebString& url, 455 const WebKit::WebString& url,
450 const WebKit::WebString& title); 456 const WebKit::WebString& title);
451 virtual void registerIntentHandler(const WebKit::WebString& action, 457 virtual void registerIntentHandler(const WebKit::WebString& action,
452 const WebKit::WebString& type, 458 const WebKit::WebString& type,
453 const WebKit::WebString& href, 459 const WebKit::WebString& href,
454 const WebKit::WebString& title); 460 const WebKit::WebString& title);
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 1172
1167 // The intents dispatcher attached to this view. Not lazily initialized. 1173 // The intents dispatcher attached to this view. Not lazily initialized.
1168 IntentsDispatcher* intents_dispatcher_; 1174 IntentsDispatcher* intents_dispatcher_;
1169 1175
1170 // The speech dispatcher attached to this view, lazily initialized. 1176 // The speech dispatcher attached to this view, lazily initialized.
1171 SpeechInputDispatcher* speech_input_dispatcher_; 1177 SpeechInputDispatcher* speech_input_dispatcher_;
1172 1178
1173 // Device orientation dispatcher attached to this view; lazily initialized. 1179 // Device orientation dispatcher attached to this view; lazily initialized.
1174 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1180 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1175 1181
1182 // MediaStream dispatcher attached to this view; lazily initialized.
1183 MediaStreamDispatcher* media_stream_dispatcher_;
1184
1176 // MediaStreamImpl attached to this view; lazily initialized. 1185 // MediaStreamImpl attached to this view; lazily initialized.
1177 scoped_refptr<MediaStreamImpl> media_stream_impl_; 1186 scoped_refptr<MediaStreamImpl> media_stream_impl_;
1178 1187
1179 // Handles accessibility requests into the renderer side, as well as 1188 // Handles accessibility requests into the renderer side, as well as
1180 // maintains the cache and other features of the accessibility tree. 1189 // maintains the cache and other features of the accessibility tree.
1181 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; 1190 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_;
1182 1191
1183 // Collect renderer accessibility notifications until they are ready to be 1192 // Collect renderer accessibility notifications until they are ready to be
1184 // sent to the browser. 1193 // sent to the browser.
1185 std::vector<RendererAccessibilityNotification> 1194 std::vector<RendererAccessibilityNotification>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 // bunch of stuff, you should probably create a helper class and put your 1269 // bunch of stuff, you should probably create a helper class and put your
1261 // data and methods on that to avoid bloating RenderView more. You can use 1270 // data and methods on that to avoid bloating RenderView more. You can use
1262 // the Observer interface to filter IPC messages and receive frame change 1271 // the Observer interface to filter IPC messages and receive frame change
1263 // notifications. 1272 // notifications.
1264 // --------------------------------------------------------------------------- 1273 // ---------------------------------------------------------------------------
1265 1274
1266 DISALLOW_COPY_AND_ASSIGN(RenderView); 1275 DISALLOW_COPY_AND_ASSIGN(RenderView);
1267 }; 1276 };
1268 1277
1269 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1278 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698