// Copyright (c) 2010 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. #include "googleurl/src/gurl.h" #include "webkit/glue/plugins/plugin_list.h" #include "webkit/glue/webkit_glue.h" // Functions needed by webkit_glue. namespace webkit_glue { void GetPlugins(bool refresh, std::vector* plugins) { NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins); } bool IsDefaultPluginEnabled() { return false; } bool IsPluginRunningInRendererProcess() { return true; } void AppendToLog(const char*, int, const char*) { } bool IsProtocolSupportedForMedia(const GURL& url) { if (url.SchemeIsFile() || url.SchemeIs("http") || url.SchemeIs("https") || url.SchemeIs("data")) return true; return false; } } // namespace webkit_glue