Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: webkit/support/test_webplugin_page_delegate.cc

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/WebKit/chromium/public/WebKit.h" 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.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 FilePath& file_path,
15 const std::string& mime_type) { 15 const std::string& mime_type) {
16 // We don't need a valid native window handle in layout tests. 16 // We don't need a valid native window handle in layout tests.
17 // So just passing 0. 17 // So just passing 0.
18 return webkit::npapi::WebPluginDelegateImpl::Create( 18 return webkit::npapi::WebPluginDelegateImpl::Create(
19 file_path, mime_type, 0); 19 file_path, mime_type, 0);
20 } 20 }
21 21
22 WebKit::WebPlugin* TestWebPluginPageDelegate::CreatePluginReplacement(
23 const FilePath& file_path) {
24 return NULL;
25 }
26
22 WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() { 27 WebKit::WebCookieJar* TestWebPluginPageDelegate::GetCookieJar() {
23 return WebKit::webKitPlatformSupport()->cookieJar(); 28 return WebKit::webKitPlatformSupport()->cookieJar();
24 } 29 }
25 30
26 } // namespace webkit_support 31 } // namespace webkit_support
27 32
OLDNEW
« no previous file with comments | « webkit/support/test_webplugin_page_delegate.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698