OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace ppapi { | 25 namespace ppapi { |
26 class PpapiPermissions; | 26 class PpapiPermissions; |
27 class VarTracker; | 27 class VarTracker; |
28 struct URLRequestInfoData; | 28 struct URLRequestInfoData; |
29 } | 29 } |
30 | 30 |
31 namespace IPC { | 31 namespace IPC { |
32 struct ChannelHandle; | 32 struct ChannelHandle; |
33 } | 33 } |
34 | 34 |
35 namespace WebKit { | 35 namespace blink { |
36 class WebPluginContainer; | 36 class WebPluginContainer; |
37 } | 37 } |
38 | 38 |
39 namespace v8 { | 39 namespace v8 { |
40 class Isolate; | 40 class Isolate; |
41 } | 41 } |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class RenderView; | 44 class RenderView; |
45 | 45 |
46 class PepperPluginInstance { | 46 class PepperPluginInstance { |
47 public: | 47 public: |
48 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); | 48 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); |
49 | 49 |
50 virtual ~PepperPluginInstance() {} | 50 virtual ~PepperPluginInstance() {} |
51 | 51 |
52 virtual content::RenderView* GetRenderView() = 0; | 52 virtual content::RenderView* GetRenderView() = 0; |
53 | 53 |
54 virtual WebKit::WebPluginContainer* GetContainer() = 0; | 54 virtual blink::WebPluginContainer* GetContainer() = 0; |
55 | 55 |
56 virtual v8::Isolate* GetIsolate() const = 0; | 56 virtual v8::Isolate* GetIsolate() const = 0; |
57 | 57 |
58 virtual ppapi::VarTracker* GetVarTracker() = 0; | 58 virtual ppapi::VarTracker* GetVarTracker() = 0; |
59 | 59 |
60 virtual const GURL& GetPluginURL() = 0; | 60 virtual const GURL& GetPluginURL() = 0; |
61 | 61 |
62 // Returns the location of this module. | 62 // Returns the location of this module. |
63 virtual base::FilePath GetModulePath() = 0; | 63 virtual base::FilePath GetModulePath() = 0; |
64 | 64 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 const char* target, | 97 const char* target, |
98 bool from_user_action) = 0; | 98 bool from_user_action) = 0; |
99 | 99 |
100 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. | 100 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. |
101 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; | 101 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace content | 104 } // namespace content |
105 | 105 |
106 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 106 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |