summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 19:13:17 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 19:13:17 +0000
commit521c0356810dac743b751c0f96bf605e6b41e880 (patch)
tree95298b17b38fc8e5fe743a6068342b9f45decca9 /webkit/glue/webkit_glue.h
parentfb75acb6eb743447ec3b93df0e1ce232a14bcd0d (diff)
downloadchromium_src-521c0356810dac743b751c0f96bf605e6b41e880.zip
chromium_src-521c0356810dac743b751c0f96bf605e6b41e880.tar.gz
chromium_src-521c0356810dac743b751c0f96bf605e6b41e880.tar.bz2
Media player availability now determined by SetMediaPlayerAvailable.
Instead of relying on the command line, RenderProcess will attempt to load and enable the media player if possible. This is the first in a few changes where I'll be adding in hooks to load media DLLs at runtime if present. Review URL: http://codereview.chromium.org/20253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.h')
-rw-r--r--webkit/glue/webkit_glue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h
index 3ef990c..44dc8a4 100644
--- a/webkit/glue/webkit_glue.h
+++ b/webkit/glue/webkit_glue.h
@@ -142,6 +142,10 @@ bool DecodeImage(const std::string& image_data, SkBitmap* image);
//-----------------------------------------------------------------------------
// Functions implemented by the embedder, called by WebKit:
+// Set during RenderProcess::GlobalInit when --enable-video has been passed in
+// and all media related libraries were successfully loaded.
+void SetMediaPlayerAvailable(bool value);
+
// This function is called from WebCore::MediaPlayerPrivate,
// Returns true if media player is available and can be created.
bool IsMediaPlayerAvailable();