summaryrefslogtreecommitdiffstats
path: root/webkit/support/test_webplugin_page_delegate.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 01:16:46 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 01:16:46 +0000
commit09fb387aa28e997593d5d5c11cf4a5fb12258217 (patch)
tree18c92d7099ac4ca248ee5e2061aa3ea82b111eb7 /webkit/support/test_webplugin_page_delegate.cc
parent06aca52af687c5d55794a56aa9e3d625ce6ea8ea (diff)
downloadchromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.zip
chromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.tar.gz
chromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.tar.bz2
Cleanup everything but net/ for our first clang plugins.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6250088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/test_webplugin_page_delegate.cc')
-rw-r--r--webkit/support/test_webplugin_page_delegate.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/webkit/support/test_webplugin_page_delegate.cc b/webkit/support/test_webplugin_page_delegate.cc
new file mode 100644
index 0000000..3725430
--- /dev/null
+++ b/webkit/support/test_webplugin_page_delegate.cc
@@ -0,0 +1,27 @@
+// 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 "webkit/support/test_webplugin_page_delegate.h"
+
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebKitClient.h"
+
+namespace webkit_support {
+
+webkit::npapi::WebPluginDelegate*
+TestWebPluginPageDelegate::CreatePluginDelegate(
+ const FilePath& file_path,
+ const std::string& mime_type) {
+ // We don't need a valid native window handle in layout tests.
+ // So just passing 0.
+ return webkit::npapi::WebPluginDelegateImpl::Create(
+ file_path, mime_type, 0);
+}
+
+WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() {
+ return WebKit::webKitClient()->cookieJar();
+}
+
+} // namespace webkit_support
+