summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support.h
diff options
context:
space:
mode:
authortkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 08:25:08 +0000
committertkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-04 08:25:08 +0000
commit43b3be394cf9062a2b80e4dba5d880759d060633 (patch)
tree074b05cf00d1df1e057f8cedcc23774519cbd988 /webkit/support/webkit_support.h
parentebaac267c41fce4a5b8ed4341ba32be40c7ac43e (diff)
downloadchromium_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.h')
-rw-r--r--webkit/support/webkit_support.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h
new file mode 100644
index 0000000..651bb5c
--- /dev/null
+++ b/webkit/support/webkit_support.h
@@ -0,0 +1,47 @@
+// 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.
+
+#ifndef WEBKIT_SUPPORT_WEBIT_SUPPORT_H_
+#define WEBKIT_SUPPORT_WEBIT_SUPPORT_H_
+
+namespace WebKit {
+class WebFrame;
+class WebKitClient;
+class WebMediaPlayer;
+class WebMediaPlayerClient;
+class WebPlugin;
+struct WebPluginParams;
+}
+
+// This package provides functions used by DumpRenderTree/chromium.
+// DumpRenderTree/chromium uses some code in webkit/ of Chromium. In
+// order to minimize the dependency from WebKit to Chromium, the
+// following functions uses WebKit API classes as possible and hide
+// implementation classes.
+namespace webkit_support {
+
+// Initializes or terminates a test environment.
+void SetUpTestEnvironment();
+void TearDownTestEnvironment();
+
+// Returns a pointer to a WebKitClient implementation for DumpRenderTree.
+// Needs to call SetUpTestEnvironment() before this.
+// This returns a pointer to a static instance. Don't delete it.
+WebKit::WebKitClient* GetWebKitClient();
+
+// This is used by WebFrameClient::createPlugin().
+WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame,
+ const WebKit::WebPluginParams& params);
+
+// This is used by WebFrameClient::createMediaPlayer().
+WebKit::WebMediaPlayer* CreateMediaPlayer(WebKit::WebFrame* frame,
+ WebKit::WebMediaPlayerClient* client);
+
+// The following functions are used by LayoutTestController.
+void SetDatabaseQuota(int quota);
+void ClearAllDatabases();
+
+} // namespace webkit_support
+
+#endif // WEBKIT_SUPPORT_WEBIT_CLIENT_IMPL_H_