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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 15993018: Reland: Use a shared thread for media operations (round 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | « no previous file | content/renderer/render_thread_impl.h » ('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_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/ref_counted.h"
9 10
10 namespace WebKit { 11 namespace WebKit {
11 class WebGamepads; 12 class WebGamepads;
12 struct WebSize; 13 struct WebSize;
13 } 14 }
14 15
15 namespace WebTestRunner { 16 namespace WebTestRunner {
16 class WebTestProxyBase; 17 class WebTestProxyBase;
17 } 18 }
18 19
20 namespace base {
21 class MessageLoopProxy;
22 }
23
19 namespace content { 24 namespace content {
20 25
21 class RenderView; 26 class RenderView;
22 27
23 // Turn the browser process into layout test mode. 28 // Turn the browser process into layout test mode.
24 void EnableBrowserLayoutTestMode(); 29 void EnableBrowserLayoutTestMode();
25 30
26 /////////////////////////////////////////////////////////////////////////////// 31 ///////////////////////////////////////////////////////////////////////////////
27 // The following methods are meant to be used from a renderer. 32 // The following methods are meant to be used from a renderer.
28 33
(...skipping 28 matching lines...) Expand all
57 // Set the device scale factor and force the compositor to resize. 62 // Set the device scale factor and force the compositor to resize.
58 void SetDeviceScaleFactor(RenderView* render_view, float factor); 63 void SetDeviceScaleFactor(RenderView* render_view, float factor);
59 64
60 // Control auto resize mode. 65 // Control auto resize mode.
61 void EnableAutoResizeMode(RenderView* render_view, 66 void EnableAutoResizeMode(RenderView* render_view,
62 const WebKit::WebSize& min_size, 67 const WebKit::WebSize& min_size,
63 const WebKit::WebSize& max_size); 68 const WebKit::WebSize& max_size);
64 void DisableAutoResizeMode(RenderView* render_view, 69 void DisableAutoResizeMode(RenderView* render_view,
65 const WebKit::WebSize& new_size); 70 const WebKit::WebSize& new_size);
66 71
72 // Return the thread on which media operations should run.
73 //
74 // TODO(scherkus): We should be using RenderViewImpl::createMediaPlayer(), see
75 // http://crbug.com/239826
76 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy();
77
67 } // namespace content 78 } // namespace content
68 79
69 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 80 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698