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

Unified Diff: content/renderer/media/media_stream_impl.h

Issue 11066101: Tentatively turn on WebMediaPlayerMS by default. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: use static function to check if url is media stream Created 8 years, 2 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 | « content/public/common/content_switches.cc ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_impl.h
===================================================================
--- content/renderer/media/media_stream_impl.h (revision 161195)
+++ content/renderer/media/media_stream_impl.h (working copy)
@@ -51,6 +51,12 @@
MediaStreamDependencyFactory* dependency_factory);
virtual ~MediaStreamImpl();
+ // Return true when the |url| is media stream.
+ // This static function has the same functionalilty as IsMediaStream
+ // except that it doesn't require an instance of this class.
+ // This can save some overhead time when the |url| is not media stream.
+ static bool CheckMediaStream(const GURL& url);
+
// WebKit::WebUserMediaClient implementation
virtual void requestUserMedia(
const WebKit::WebUserMediaRequest& user_media_request,
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/media/media_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698