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

Unified Diff: chrome/renderer/renderer_glue.cc

Issue 216022: Allow <audio> to work in extension (Closed)
Patch Set: omments Created 11 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
« no previous file with comments | « no previous file | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_glue.cc
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc
index c9920109ddb1d2b51113d580ca16075f7efb3bda..be06db42668ab02565de6939179c2cf3bb8cc1ae 100644
--- a/chrome/renderer/renderer_glue.cc
+++ b/chrome/renderer/renderer_glue.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -212,6 +212,16 @@ void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) {
RenderThread::current()->Send(new ViewHostMsg_GetPlugins(refresh, plugins));
}
+bool IsProtocolSupportedForMedia(const GURL& url) {
+ // If new protocol is to be added here, we need to make sure the response is
+ // validated accordingly in the media engine.
+ if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) ||
+ url.SchemeIs(chrome::kHttpsScheme) ||
+ url.SchemeIs(chrome::kExtensionScheme))
+ return true;
+ return false;
+}
+
// static factory function
ResourceLoaderBridge* ResourceLoaderBridge::Create(
const std::string& method,
« no previous file with comments | « no previous file | webkit/glue/media/buffered_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698