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 CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace IPC { | 27 namespace IPC { |
28 class Message; | 28 class Message; |
29 } | 29 } |
30 | 30 |
31 namespace ppapi { | 31 namespace ppapi { |
32 namespace host { | 32 namespace host { |
33 class PpapiHost; | 33 class PpapiHost; |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 namespace WebKit { | 37 namespace blink { |
38 class WebPluginContainer; | 38 class WebPluginContainer; |
39 } | 39 } |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 class PepperPluginInstance; | 42 class PepperPluginInstance; |
43 class RenderView; | 43 class RenderView; |
44 | 44 |
45 // Interface that allows components in the embedder app to talk to the | 45 // Interface that allows components in the embedder app to talk to the |
46 // PpapiHost in the renderer process. | 46 // PpapiHost in the renderer process. |
47 // | 47 // |
(...skipping 22 matching lines...) Expand all Loading... |
70 // plugin teardown when resource hosts are being force-freed). | 70 // plugin teardown when resource hosts are being force-freed). |
71 virtual PepperPluginInstance* GetPluginInstance( | 71 virtual PepperPluginInstance* GetPluginInstance( |
72 PP_Instance instance) const = 0; | 72 PP_Instance instance) const = 0; |
73 | 73 |
74 // Returns the RenderView for the given plugin instance, or NULL if the | 74 // Returns the RenderView for the given plugin instance, or NULL if the |
75 // instance is invalid. | 75 // instance is invalid. |
76 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0; | 76 virtual RenderView* GetRenderViewForInstance(PP_Instance instance) const = 0; |
77 | 77 |
78 // Returns the WebPluginContainer for the given plugin instance, or NULL if | 78 // Returns the WebPluginContainer for the given plugin instance, or NULL if |
79 // the instance is invalid. | 79 // the instance is invalid. |
80 virtual WebKit::WebPluginContainer* GetContainerForInstance( | 80 virtual blink::WebPluginContainer* GetContainerForInstance( |
81 PP_Instance instance) const = 0; | 81 PP_Instance instance) const = 0; |
82 | 82 |
83 // Returns the PID of the child process containing the plugin. If running | 83 // Returns the PID of the child process containing the plugin. If running |
84 // in-process, this returns base::kNullProcessId. | 84 // in-process, this returns base::kNullProcessId. |
85 virtual base::ProcessId GetPluginPID() const = 0; | 85 virtual base::ProcessId GetPluginPID() const = 0; |
86 | 86 |
87 // Returns true if the given instance is considered to be currently | 87 // Returns true if the given instance is considered to be currently |
88 // processing a user gesture or the plugin module has the "override user | 88 // processing a user gesture or the plugin module has the "override user |
89 // gesture" flag set (in which case it can always do things normally | 89 // gesture" flag set (in which case it can always do things normally |
90 // restricted by user gestures). Returns false if the instance is invalid or | 90 // restricted by user gestures). Returns false if the instance is invalid or |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // interface. Consider changing them to static helpers. | 136 // interface. Consider changing them to static helpers. |
137 virtual GURL GetDocumentURL(PP_Instance instance) const = 0; | 137 virtual GURL GetDocumentURL(PP_Instance instance) const = 0; |
138 | 138 |
139 protected: | 139 protected: |
140 virtual ~RendererPpapiHost() {} | 140 virtual ~RendererPpapiHost() {} |
141 }; | 141 }; |
142 | 142 |
143 } // namespace content | 143 } // namespace content |
144 | 144 |
145 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ | 145 #endif // CONTENT_PUBLIC_RENDERER_RENDERER_PPAPI_HOST_H_ |
OLD | NEW |