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

Side by Side Diff: content/public/renderer/pepper_plugin_instance.h

Issue 14588009: PPAPI/NaCl: Move event dispatching from the plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 1 month 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) 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 18 matching lines...) Expand all
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 WebKit {
36 class WebPluginContainer; 36 class WebPluginContainer;
37 } 37 }
38 38
39 namespace v8 {
40 class Isolate;
41 }
42
39 namespace content { 43 namespace content {
40 class RenderView; 44 class RenderView;
41 45
42 class PepperPluginInstance { 46 class PepperPluginInstance {
43 public: 47 public:
44 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); 48 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id);
45 49
46 virtual ~PepperPluginInstance() {} 50 virtual ~PepperPluginInstance() {}
47 51
48 virtual content::RenderView* GetRenderView() = 0; 52 virtual content::RenderView* GetRenderView() = 0;
49 53
50 virtual WebKit::WebPluginContainer* GetContainer() = 0; 54 virtual WebKit::WebPluginContainer* GetContainer() = 0;
51 55
56 virtual v8::Isolate* GetIsolate() const = 0;
57
52 virtual ppapi::VarTracker* GetVarTracker() = 0; 58 virtual ppapi::VarTracker* GetVarTracker() = 0;
53 59
54 virtual const GURL& GetPluginURL() = 0; 60 virtual const GURL& GetPluginURL() = 0;
55 61
56 // Returns the location of this module. 62 // Returns the location of this module.
57 virtual base::FilePath GetModulePath() = 0; 63 virtual base::FilePath GetModulePath() = 0;
58 64
59 // Creates a PPB_ImageData given a Skia image. 65 // Creates a PPB_ImageData given a Skia image.
60 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image, 66 virtual PP_Resource CreateImage(gfx::ImageSkia* source_image,
61 float scale) = 0; 67 float scale) = 0;
(...skipping 29 matching lines...) Expand all
91 const char* target, 97 const char* target,
92 bool from_user_action) = 0; 98 bool from_user_action) = 0;
93 99
94 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure. 100 // Creates a pending PepperFileRefRendererHost. Returns 0 on failure.
95 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0; 101 virtual int MakePendingFileRefRendererHost(const base::FilePath& path) = 0;
96 }; 102 };
97 103
98 } // namespace content 104 } // namespace content
99 105
100 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ 106 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/ppb_nacl_private_impl.cc ('k') | content/renderer/pepper/pepper_plugin_instance_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698