diff options
author | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 08:25:08 +0000 |
---|---|---|
committer | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 08:25:08 +0000 |
commit | 43b3be394cf9062a2b80e4dba5d880759d060633 (patch) | |
tree | 074b05cf00d1df1e057f8cedcc23774519cbd988 /webkit/support/webkit_support_glue.cc | |
parent | ebaac267c41fce4a5b8ed4341ba32be40c7ac43e (diff) | |
download | chromium_src-43b3be394cf9062a2b80e4dba5d880759d060633.zip chromium_src-43b3be394cf9062a2b80e4dba5d880759d060633.tar.gz chromium_src-43b3be394cf9062a2b80e4dba5d880759d060633.tar.bz2 |
Initial change for DumpRrenderTree support library
This library provides:
- An implementation of WebKitClient,
- An implementation of WebPlugin,
- An implementation of WebMediaPalyer,
- Initialization and termination functions,
- Two function for database, and
- Some functions required by webkit_glue.
webkit_support.gyp is not referred by build/all.gyp. A gyp for DRT/chromium in
WebKit tree will refer to it.
BUG=none
TEST=none. This is a part of test code.
Review URL: http://codereview.chromium.org/652226
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/webkit_support_glue.cc')
-rw-r--r-- | webkit/support/webkit_support_glue.cc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/webkit/support/webkit_support_glue.cc b/webkit/support/webkit_support_glue.cc new file mode 100644 index 0000000..6857c89 --- /dev/null +++ b/webkit/support/webkit_support_glue.cc @@ -0,0 +1,37 @@ +// 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<WebPluginInfo>* 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 |