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

Side by Side Diff: webkit/glue/plugins/webplugin_page_delegate.h

Issue 2262002: Add ppapi plugins to about:plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GLUE_WEBPLUGIN_PAGE_DELEGATE_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_
6 #define WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_ 6 #define WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_
7 7
8 #include "gfx/native_widget_types.h" 8 #include "gfx/native_widget_types.h"
9 9
10 class FilePath;
10 class GURL; 11 class GURL;
11 12
12 namespace WebKit { 13 namespace WebKit {
13 class WebCookieJar; 14 class WebCookieJar;
14 } 15 }
15 16
16 namespace webkit_glue { 17 namespace webkit_glue {
17 18
18 class WebPluginDelegate; 19 class WebPluginDelegate;
19 struct WebPluginGeometry; 20 struct WebPluginGeometry;
20 21
21 // Used by the WebPlugin to communicate back to the containing page. 22 // Used by the WebPlugin to communicate back to the containing page.
22 class WebPluginPageDelegate { 23 class WebPluginPageDelegate {
23 public: 24 public:
24 // This method is called to create a WebPluginDelegate implementation when a 25 // This method is called to create a WebPluginDelegate implementation when a
25 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper 26 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper
26 // for a default WebPluginDelegate implementation. 27 // for a default WebPluginDelegate implementation.
27 virtual WebPluginDelegate* CreatePluginDelegate( 28 virtual WebPluginDelegate* CreatePluginDelegate(
28 const GURL& url, 29 const FilePath& file_path,
29 const std::string& mime_type, 30 const std::string& mime_type) = 0;
30 std::string* actual_mime_type) = 0;
31 31
32 // Called when a windowed plugin is created. 32 // Called when a windowed plugin is created.
33 // Lets the view delegate create anything it is using to wrap the plugin. 33 // Lets the view delegate create anything it is using to wrap the plugin.
34 virtual void CreatedPluginWindow( 34 virtual void CreatedPluginWindow(
35 gfx::PluginWindowHandle handle) = 0; 35 gfx::PluginWindowHandle handle) = 0;
36 36
37 // Called when a windowed plugin is closing. 37 // Called when a windowed plugin is closing.
38 // Lets the view delegate shut down anything it is using to wrap the plugin. 38 // Lets the view delegate shut down anything it is using to wrap the plugin.
39 virtual void WillDestroyPluginWindow( 39 virtual void WillDestroyPluginWindow(
40 gfx::PluginWindowHandle handle) = 0; 40 gfx::PluginWindowHandle handle) = 0;
(...skipping 19 matching lines...) Expand all
60 const std::string& json_arguments, 60 const std::string& json_arguments,
61 std::string* json_retval) = 0; 61 std::string* json_retval) = 0;
62 62
63 // The WebCookieJar to use for this plugin. 63 // The WebCookieJar to use for this plugin.
64 virtual WebKit::WebCookieJar* GetCookieJar() = 0; 64 virtual WebKit::WebCookieJar* GetCookieJar() = 0;
65 }; 65 };
66 66
67 } // namespace webkit_glue 67 } // namespace webkit_glue
68 68
69 #endif // WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_H_ 69 #endif // WEBKIT_GLUE_WEBPLUGIN_PAGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698