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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index ed490ec5a12363a4d89b66521013791e92af7eb1..21a345034111d20dc0683e9f88e1f7a2661acef1 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
namespace WebKit {
class WebGamepads;
@@ -16,6 +17,10 @@ namespace WebTestRunner {
class WebTestProxyBase;
}
+namespace base {
+class MessageLoopProxy;
+}
+
namespace content {
class RenderView;
@@ -64,6 +69,12 @@ void EnableAutoResizeMode(RenderView* render_view,
void DisableAutoResizeMode(RenderView* render_view,
const WebKit::WebSize& new_size);
+// Return the thread on which media operations should run.
+//
+// TODO(scherkus): We should be using RenderViewImpl::createMediaPlayer(), see
+// http://crbug.com/239826
+scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy();
+
} // namespace content
#endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
« 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