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

Unified Diff: content/browser/browser_main_loop.h

Issue 10912070: Makes it possible to run content_browsertests with --as-browser and fake WebRTC devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_main_loop.h
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index eb3de50d1b066c22d45939e67dd6a2a03df315f3..1fe269f4483808b9f966416ba96e2039ee0c7547 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -84,6 +84,9 @@ class BrowserMainLoop {
static media::AudioManager* GetAudioManager();
static media_stream::MediaStreamManager* GetMediaStreamManager();
+ // Should be called before RunMainMessageLoopParts (on the thread that calls
+ // that method).
+ static void UseFakeMediaStreamDevice();
private:
// For ShutdownThreadsAndCleanUp.
friend class BrowserShutdownImpl;
@@ -138,6 +141,9 @@ class BrowserMainLoop {
scoped_ptr<BrowserProcessSubThread> cache_thread_;
scoped_ptr<BrowserProcessSubThread> io_thread_;
+ // Static members.
+ static bool use_fake_media_stream_device_;
+
#if defined(OS_WIN)
ui::ScopedOleInitializer ole_initializer_;
#endif

Powered by Google App Engine
This is Rietveld 408576698