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 #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 base::FilePath& file_path, |
22 const std::string& mime_type) OVERRIDE; | 22 const std::string& mime_type) OVERRIDE; |
23 virtual WebKit::WebPlugin* CreatePluginReplacement( | 23 virtual WebKit::WebPlugin* CreatePluginReplacement( |
24 const FilePath& file_path) OVERRIDE; | 24 const base::FilePath& file_path) OVERRIDE; |
25 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE {} | 25 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE {} |
26 virtual void WillDestroyPluginWindow( | 26 virtual void WillDestroyPluginWindow( |
27 gfx::PluginWindowHandle handle) OVERRIDE {} | 27 gfx::PluginWindowHandle handle) OVERRIDE {} |
28 virtual void DidMovePlugin( | 28 virtual void DidMovePlugin( |
29 const webkit::npapi::WebPluginGeometry& move) OVERRIDE {} | 29 const webkit::npapi::WebPluginGeometry& move) OVERRIDE {} |
30 virtual void DidStartLoadingForPlugin() OVERRIDE {} | 30 virtual void DidStartLoadingForPlugin() OVERRIDE {} |
31 virtual void DidStopLoadingForPlugin() OVERRIDE {} | 31 virtual void DidStopLoadingForPlugin() OVERRIDE {} |
32 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; | 32 virtual WebKit::WebCookieJar* GetCookieJar() OVERRIDE; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace webkit_support | 35 } // namespace webkit_support |
36 | 36 |
37 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ | 37 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ |
OLD | NEW |