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

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

Issue 18590002: Migrate MediaStream test code from content/shell/renderer/ to content/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/public/test/layouttest_support.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 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } // namespace ui 86 } // namespace ui
87 87
88 namespace webkit { 88 namespace webkit {
89 89
90 namespace ppapi { 90 namespace ppapi {
91 class PluginInstance; 91 class PluginInstance;
92 } // namespace ppapi 92 } // namespace ppapi
93 93
94 } // namespace webkit 94 } // namespace webkit
95 95
96 namespace webkit_media {
97 class MediaStreamClient;
98 }
99
96 namespace WebKit { 100 namespace WebKit {
97 class WebApplicationCacheHost; 101 class WebApplicationCacheHost;
98 class WebApplicationCacheHostClient; 102 class WebApplicationCacheHostClient;
99 class WebDOMMessageEvent; 103 class WebDOMMessageEvent;
100 class WebDataSource; 104 class WebDataSource;
101 class WebDateTimeChooserCompletion; 105 class WebDateTimeChooserCompletion;
102 class WebDragData; 106 class WebDragData;
103 class WebGeolocationClient; 107 class WebGeolocationClient;
104 class WebGestureEvent; 108 class WebGestureEvent;
105 class WebIconURL; 109 class WebIconURL;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 class DocumentState; 144 class DocumentState;
141 class DomAutomationController; 145 class DomAutomationController;
142 class ExternalPopupMenu; 146 class ExternalPopupMenu;
143 class FaviconHelper; 147 class FaviconHelper;
144 class GeolocationDispatcher; 148 class GeolocationDispatcher;
145 class ImageResourceFetcher; 149 class ImageResourceFetcher;
146 class InputTagSpeechDispatcher; 150 class InputTagSpeechDispatcher;
147 class JavaBridgeDispatcher; 151 class JavaBridgeDispatcher;
148 class LoadProgressTracker; 152 class LoadProgressTracker;
149 class MediaStreamDispatcher; 153 class MediaStreamDispatcher;
150 class MediaStreamImpl;
151 class MouseLockDispatcher; 154 class MouseLockDispatcher;
152 class NavigationState; 155 class NavigationState;
153 class NotificationProvider; 156 class NotificationProvider;
154 class RenderViewObserver; 157 class RenderViewObserver;
155 class RenderViewTest; 158 class RenderViewTest;
156 class RendererAccessibility; 159 class RendererAccessibility;
157 class RendererDateTimePicker; 160 class RendererDateTimePicker;
158 class RendererPpapiHost; 161 class RendererPpapiHost;
159 class RendererWebColorChooserImpl; 162 class RendererWebColorChooserImpl;
160 class RenderWidgetFullscreenPepper; 163 class RenderWidgetFullscreenPepper;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 void SetFocusAndActivateForTesting(bool enable); 384 void SetFocusAndActivateForTesting(bool enable);
382 385
383 // Change the device scale factor and force the compositor to resize. 386 // Change the device scale factor and force the compositor to resize.
384 void SetDeviceScaleFactorForTesting(float factor); 387 void SetDeviceScaleFactorForTesting(float factor);
385 388
386 // Control autoresize mode. 389 // Control autoresize mode.
387 void EnableAutoResizeForTesting(const gfx::Size& min_size, 390 void EnableAutoResizeForTesting(const gfx::Size& min_size,
388 const gfx::Size& max_size); 391 const gfx::Size& max_size);
389 void DisableAutoResizeForTesting(const gfx::Size& new_size); 392 void DisableAutoResizeForTesting(const gfx::Size& new_size);
390 393
394 // Overrides the MediaStreamClient used when creating MediaStream players.
395 // Must be called before any players are created.
396 void SetMediaStreamClientForTesting(
397 webkit_media::MediaStreamClient* media_stream_client);
398
391 // IPC::Listener implementation ---------------------------------------------- 399 // IPC::Listener implementation ----------------------------------------------
392 400
393 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 401 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
394 402
395 // WebKit::WebWidgetClient implementation ------------------------------------ 403 // WebKit::WebWidgetClient implementation ------------------------------------
396 404
397 // Most methods are handled by RenderWidget. 405 // Most methods are handled by RenderWidget.
398 virtual void didFocus(); 406 virtual void didFocus();
399 virtual void didBlur(); 407 virtual void didBlur();
400 virtual void show(WebKit::WebNavigationPolicy policy); 408 virtual void show(WebKit::WebNavigationPolicy policy);
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 float scaling_increment); 1098 float scaling_increment);
1091 1099
1092 void AltErrorPageFinished(WebKit::WebFrame* frame, 1100 void AltErrorPageFinished(WebKit::WebFrame* frame,
1093 const WebKit::WebURLRequest& original_request, 1101 const WebKit::WebURLRequest& original_request,
1094 const WebKit::WebURLError& original_error, 1102 const WebKit::WebURLError& original_error,
1095 const std::string& html); 1103 const std::string& html);
1096 1104
1097 // Check whether the preferred size has changed. 1105 // Check whether the preferred size has changed.
1098 void CheckPreferredSize(); 1106 void CheckPreferredSize();
1099 1107
1100 void EnsureMediaStreamImpl(); 1108 // Initializes |media_stream_client_| if needed.
1109 void EnsureMediaStreamClient();
1101 1110
1102 // This callback is triggered when DownloadFavicon completes, either 1111 // This callback is triggered when DownloadFavicon completes, either
1103 // succesfully or with a failure. See DownloadFavicon for more 1112 // succesfully or with a failure. See DownloadFavicon for more
1104 // details. 1113 // details.
1105 void DidDownloadFavicon(ImageResourceFetcher* fetcher, 1114 void DidDownloadFavicon(ImageResourceFetcher* fetcher,
1106 const SkBitmap& image); 1115 const SkBitmap& image);
1107 1116
1108 // Requests to download a favicon image. When done, the RenderView is notified 1117 // Requests to download a favicon image. When done, the RenderView is notified
1109 // by way of DidDownloadFavicon. Returns true if the request was successfully 1118 // by way of DidDownloadFavicon. Returns true if the request was successfully
1110 // started, false otherwise. id is used to uniquely identify the request and 1119 // started, false otherwise. id is used to uniquely identify the request and
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 1420
1412 // Device orientation dispatcher attached to this view; lazily initialized. 1421 // Device orientation dispatcher attached to this view; lazily initialized.
1413 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1422 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1414 1423
1415 // MediaStream dispatcher attached to this view; lazily initialized. 1424 // MediaStream dispatcher attached to this view; lazily initialized.
1416 MediaStreamDispatcher* media_stream_dispatcher_; 1425 MediaStreamDispatcher* media_stream_dispatcher_;
1417 1426
1418 // BrowserPluginManager attached to this view; lazily initialized. 1427 // BrowserPluginManager attached to this view; lazily initialized.
1419 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; 1428 scoped_refptr<BrowserPluginManager> browser_plugin_manager_;
1420 1429
1421 // MediaStreamImpl attached to this view; lazily initialized. 1430 // MediaStreamClient attached to this view; lazily initialized.
1422 MediaStreamImpl* media_stream_impl_; 1431 webkit_media::MediaStreamClient* media_stream_client_;
1432 WebKit::WebUserMediaClient* web_user_media_client_;
1423 1433
1424 DevToolsAgent* devtools_agent_; 1434 DevToolsAgent* devtools_agent_;
1425 1435
1426 // The current accessibility mode. 1436 // The current accessibility mode.
1427 AccessibilityMode accessibility_mode_; 1437 AccessibilityMode accessibility_mode_;
1428 1438
1429 // Only valid if |accessibility_mode_| is anything other than 1439 // Only valid if |accessibility_mode_| is anything other than
1430 // AccessibilityModeOff. 1440 // AccessibilityModeOff.
1431 RendererAccessibility* renderer_accessibility_; 1441 RendererAccessibility* renderer_accessibility_;
1432 1442
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 // use the Observer interface to filter IPC messages and receive frame change 1577 // use the Observer interface to filter IPC messages and receive frame change
1568 // notifications. 1578 // notifications.
1569 // --------------------------------------------------------------------------- 1579 // ---------------------------------------------------------------------------
1570 1580
1571 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1581 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1572 }; 1582 };
1573 1583
1574 } // namespace content 1584 } // namespace content
1575 1585
1576 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1586 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698