OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/support/test_webplugin_page_delegate.h" | 5 #include "webkit/support/test_webplugin_page_delegate.h" |
6 | 6 |
7 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" | 7 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
9 | 9 |
10 namespace webkit_support { | 10 namespace webkit_support { |
11 | 11 |
12 webkit::npapi::WebPluginDelegate* | 12 webkit::npapi::WebPluginDelegate* |
13 TestWebPluginPageDelegate::CreatePluginDelegate( | 13 TestWebPluginPageDelegate::CreatePluginDelegate( |
14 const FilePath& file_path, | 14 const base::FilePath& file_path, |
15 const std::string& mime_type) { | 15 const std::string& mime_type) { |
16 return webkit::npapi::WebPluginDelegateImpl::Create(file_path, mime_type); | 16 return webkit::npapi::WebPluginDelegateImpl::Create(file_path, mime_type); |
17 } | 17 } |
18 | 18 |
19 WebKit::WebPlugin* TestWebPluginPageDelegate::CreatePluginReplacement( | 19 WebKit::WebPlugin* TestWebPluginPageDelegate::CreatePluginReplacement( |
20 const FilePath& file_path) { | 20 const base::FilePath& file_path) { |
21 return NULL; | 21 return NULL; |
22 } | 22 } |
23 | 23 |
24 WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() { | 24 WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() { |
25 return WebKit::Platform::current()->cookieJar(); | 25 return WebKit::Platform::current()->cookieJar(); |
26 } | 26 } |
27 | 27 |
28 } // namespace webkit_support | 28 } // namespace webkit_support |
29 | 29 |
OLD | NEW |