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

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

Issue 15005005: Use a shared thread for media operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 // Enable injecting of a WebTestProxy between WebViews and RenderViews. 28 // Enable injecting of a WebTestProxy between WebViews and RenderViews.
24 // |callback| is invoked with a pointer to WebTestProxyBase for each created 29 // |callback| is invoked with a pointer to WebTestProxyBase for each created
25 // WebTestProxy. 30 // WebTestProxy.
26 void EnableWebTestProxyCreation(const base::Callback< 31 void EnableWebTestProxyCreation(const base::Callback<
27 void(RenderView*, WebTestRunner::WebTestProxyBase*)>& callback); 32 void(RenderView*, WebTestRunner::WebTestProxyBase*)>& callback);
28 33
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 70
66 // Set the device scale factor and force the compositor to resize. 71 // Set the device scale factor and force the compositor to resize.
67 void SetDeviceScaleFactor(RenderView* render_view, float factor); 72 void SetDeviceScaleFactor(RenderView* render_view, float factor);
68 73
69 // Disable system calls related to drag & drop. 74 // Disable system calls related to drag & drop.
70 void DisableSystemDragDrop(); 75 void DisableSystemDragDrop();
71 76
72 // Don't show modal popup menus. 77 // Don't show modal popup menus.
73 void DisableModalPopupMenus(); 78 void DisableModalPopupMenus();
74 79
80 // Return the thread on which media operations should run.
81 //
82 // TODO(scherkus): We should be using RenderViewImpl::createMediaPlayer(), see
83 // http://crbug.com/239826
84 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy();
85
75 } // namespace content 86 } // namespace content
76 87
77 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 88 #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