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_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "webkit/common/fileapi/file_system_types.h" | 37 #include "webkit/common/fileapi/file_system_types.h" |
38 #include "webkit/common/quota/quota_types.h" | 38 #include "webkit/common/quota/quota_types.h" |
39 #include "webkit/plugins/webkit_plugins_export.h" | 39 #include "webkit/plugins/webkit_plugins_export.h" |
40 | 40 |
41 class GURL; | 41 class GURL; |
42 class SkBitmap; | 42 class SkBitmap; |
43 class SkCanvas; | 43 class SkCanvas; |
44 class TransportDIB; | 44 class TransportDIB; |
45 struct PP_NetAddress_Private; | 45 struct PP_NetAddress_Private; |
46 | 46 |
| 47 namespace IPC { |
| 48 struct ChannelHandle; |
| 49 } |
| 50 |
47 namespace WebKit { | 51 namespace WebKit { |
48 class WebGraphicsContext3D; | 52 class WebGraphicsContext3D; |
49 } | 53 } |
50 | 54 |
51 namespace base { | 55 namespace base { |
52 class MessageLoopProxy; | 56 class MessageLoopProxy; |
53 class Time; | 57 class Time; |
54 } | 58 } |
55 | 59 |
| 60 namespace content { |
| 61 class RendererPpapiHost; |
| 62 } |
| 63 |
56 namespace fileapi { | 64 namespace fileapi { |
57 struct DirectoryEntry; | 65 struct DirectoryEntry; |
58 } | 66 } |
59 | 67 |
60 namespace gfx { | 68 namespace gfx { |
61 class Point; | 69 class Point; |
62 } | 70 } |
63 | 71 |
64 namespace gpu { | 72 namespace gpu { |
65 class CommandBuffer; | 73 class CommandBuffer; |
66 struct Mailbox; | 74 struct Mailbox; |
67 } | 75 } |
68 | 76 |
69 namespace ppapi { | 77 namespace ppapi { |
70 class PepperFilePath; | 78 class PepperFilePath; |
| 79 class PpapiPermissions; |
71 class PPB_X509Certificate_Fields; | 80 class PPB_X509Certificate_Fields; |
72 class SocketOptionData; | 81 class SocketOptionData; |
73 struct DeviceRefData; | 82 struct DeviceRefData; |
74 struct HostPortPair; | 83 struct HostPortPair; |
75 struct Preferences; | 84 struct Preferences; |
76 | 85 |
77 namespace thunk { | 86 namespace thunk { |
78 class ResourceCreationAPI; | 87 class ResourceCreationAPI; |
79 } | 88 } |
80 | 89 |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 // Returns true if running in process. | 687 // Returns true if running in process. |
679 virtual bool IsRunningInProcess(PP_Instance instance) const = 0; | 688 virtual bool IsRunningInProcess(PP_Instance instance) const = 0; |
680 | 689 |
681 // Notifies the plugin of the document load. This should initiate the call to | 690 // Notifies the plugin of the document load. This should initiate the call to |
682 // PPP_Instance.HandleDocumentLoad. | 691 // PPP_Instance.HandleDocumentLoad. |
683 // | 692 // |
684 // The loader object should set itself on the PluginInstance as the document | 693 // The loader object should set itself on the PluginInstance as the document |
685 // loader using set_document_loader. | 694 // loader using set_document_loader. |
686 virtual void HandleDocumentLoad(PluginInstance* instance, | 695 virtual void HandleDocumentLoad(PluginInstance* instance, |
687 const WebKit::WebURLResponse& response) = 0; | 696 const WebKit::WebURLResponse& response) = 0; |
| 697 |
| 698 // Sets up the renderer host and out-of-process proxy for an external plugin |
| 699 // module. Returns the renderer host, or NULL if it couldn't be created. |
| 700 virtual content::RendererPpapiHost* CreateExternalPluginModule( |
| 701 scoped_refptr<PluginModule> module, |
| 702 const base::FilePath& path, |
| 703 ::ppapi::PpapiPermissions permissions, |
| 704 const IPC::ChannelHandle& channel_handle, |
| 705 base::ProcessId plugin_pid, |
| 706 int plugin_child_id) = 0; |
688 }; | 707 }; |
689 | 708 |
690 } // namespace ppapi | 709 } // namespace ppapi |
691 } // namespace webkit | 710 } // namespace webkit |
692 | 711 |
693 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 712 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |