Display new Autofill UI Contents in Views
[chromium-blink-merge.git] / webkit / support / test_webplugin_page_delegate.cc
blob9ec43467862b5ec13692dc2c9550d50c39514fa4
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "webkit/support/test_webplugin_page_delegate.h"
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatformSupport.h"
10 namespace webkit_support {
12 webkit::npapi::WebPluginDelegate*
13 TestWebPluginPageDelegate::CreatePluginDelegate(
14 const FilePath& file_path,
15 const std::string& mime_type) {
16 // We don't need a valid native window handle in layout tests.
17 // So just passing 0.
18 return webkit::npapi::WebPluginDelegateImpl::Create(
19 file_path, mime_type, 0);
22 WebKit::WebPlugin* TestWebPluginPageDelegate::CreatePluginReplacement(
23 const FilePath& file_path) {
24 return NULL;
27 WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() {
28 return WebKit::webKitPlatformSupport()->cookieJar();
31 } // namespace webkit_support