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

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

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
6 #define WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 10 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
11 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 11 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
12 12
13 namespace webkit_support { 13 namespace webkit_support {
14 14
15 class TestWebPluginPageDelegate : public webkit::npapi::WebPluginPageDelegate { 15 class TestWebPluginPageDelegate : public webkit::npapi::WebPluginPageDelegate {
16 public: 16 public:
17 TestWebPluginPageDelegate() {} 17 TestWebPluginPageDelegate() {}
18 virtual ~TestWebPluginPageDelegate() {} 18 virtual ~TestWebPluginPageDelegate() {}
19 19
20 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( 20 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate(
21 const FilePath& file_path, 21 const FilePath& file_path,
22 const std::string& mime_type) OVERRIDE; 22 const std::string& mime_type) OVERRIDE;
23 virtual WebKit::WebPlugin* CreatePluginReplacement(
24 const FilePath& file_path) OVERRIDE;
23 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE {} 25 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE {}
24 virtual void WillDestroyPluginWindow( 26 virtual void WillDestroyPluginWindow(
25 gfx::PluginWindowHandle handle) OVERRIDE {} 27 gfx::PluginWindowHandle handle) OVERRIDE {}
26 virtual void DidMovePlugin( 28 virtual void DidMovePlugin(
27 const webkit::npapi::WebPluginGeometry& move) OVERRIDE {} 29 const webkit::npapi::WebPluginGeometry& move) OVERRIDE {}
28 virtual void DidStartLoadingForPlugin() OVERRIDE {} 30 virtual void DidStartLoadingForPlugin() OVERRIDE {}
29 virtual void DidStopLoadingForPlugin() OVERRIDE {} 31 virtual void DidStopLoadingForPlugin() OVERRIDE {}
30 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; 32 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE;
31 }; 33 };
32 34
33 } // namespace webkit_support 35 } // namespace webkit_support
34 36
35 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 37 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698