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

Side by Side Diff: webkit/plugins/npapi/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: 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
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 class FilePath; 12 class FilePath;
13 13
14 namespace WebKit { 14 namespace WebKit {
15 class WebCookieJar; 15 class WebCookieJar;
16 class WebPlugin;
16 } 17 }
17 18
18 namespace webkit { 19 namespace webkit {
19 namespace npapi { 20 namespace npapi {
20 21
21 class WebPluginDelegate; 22 class WebPluginDelegate;
22 struct WebPluginGeometry; 23 struct WebPluginGeometry;
23 24
24 // Used by the WebPlugin to communicate back to the containing page. 25 // Used by the WebPlugin to communicate back to the containing page.
25 class WebPluginPageDelegate { 26 class WebPluginPageDelegate {
26 public: 27 public:
27 // This method is called to create a WebPluginDelegate implementation when a 28 // This method is called to create a WebPluginDelegate implementation when a
28 // new plugin is instanced. See CreateWebPluginDelegateHelper 29 // new plugin is instanced. See CreateWebPluginDelegateHelper
29 // for a default WebPluginDelegate implementation. 30 // for a default WebPluginDelegate implementation.
30 virtual WebPluginDelegate* CreatePluginDelegate( 31 virtual WebPluginDelegate* CreatePluginDelegate(
31 const FilePath& file_path, 32 const FilePath& file_path,
32 const std::string& mime_type) = 0; 33 const std::string& mime_type) = 0;
33 34
35 // Caled to create a replacement plug-in when loading a plug-in failed.
36 virtual WebKit::WebPlugin* CreatePluginReplacement(
37 const FilePath& file_path) = 0;
38
34 // Called when a windowed plugin is created. 39 // Called when a windowed plugin is created.
35 // Lets the view delegate create anything it is using to wrap the plugin. 40 // Lets the view delegate create anything it is using to wrap the plugin.
36 virtual void CreatedPluginWindow( 41 virtual void CreatedPluginWindow(
37 gfx::PluginWindowHandle handle) = 0; 42 gfx::PluginWindowHandle handle) = 0;
38 43
39 // Called when a windowed plugin is closing. 44 // Called when a windowed plugin is closing.
40 // Lets the view delegate shut down anything it is using to wrap the plugin. 45 // Lets the view delegate shut down anything it is using to wrap the plugin.
41 virtual void WillDestroyPluginWindow( 46 virtual void WillDestroyPluginWindow(
42 gfx::PluginWindowHandle handle) = 0; 47 gfx::PluginWindowHandle handle) = 0;
43 48
(...skipping 10 matching lines...) Expand all
54 virtual void DidStopLoadingForPlugin() = 0; 59 virtual void DidStopLoadingForPlugin() = 0;
55 60
56 // The WebCookieJar to use for this plugin. 61 // The WebCookieJar to use for this plugin.
57 virtual WebKit::WebCookieJar* GetCookieJar() = 0; 62 virtual WebKit::WebCookieJar* GetCookieJar() = 0;
58 }; 63 };
59 64
60 } // namespace npapi 65 } // namespace npapi
61 } // namespace webkit 66 } // namespace webkit
62 67
63 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_ 68 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_PAGE_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698