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

Unified Diff: content/renderer/pepper/renderer_ppapi_host_impl.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/renderer_ppapi_host_impl.h
diff --git a/content/renderer/pepper/renderer_ppapi_host_impl.h b/content/renderer/pepper/renderer_ppapi_host_impl.h
index e3a4b604059a6877d08ea20a93c3d7f86d49b8de..4d3d0b4e193e5da32e0844823d55394f1366afd1 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.h
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.h
@@ -10,6 +10,7 @@
#include "content/public/renderer/renderer_ppapi_host.h"
#include "content/renderer/pepper/content_renderer_pepper_host_factory.h"
#include "ppapi/host/ppapi_host.h"
+#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/plugin_module.h"
namespace IPC {
@@ -86,6 +87,8 @@ class RendererPpapiHostImpl
virtual bool IsValidInstance(PP_Instance instance) const OVERRIDE;
virtual webkit::ppapi::PluginInstance* GetPluginInstance(
PP_Instance instance) const OVERRIDE;
+ virtual webkit::ppapi::PluginDelegate::PlatformGraphics2D*
+ GetPlatformGraphics2D(PP_Resource resource) OVERRIDE;
virtual RenderView* GetRenderViewForInstance(
PP_Instance instance) const OVERRIDE;
virtual WebKit::WebPluginContainer* GetContainerForInstance(
@@ -98,6 +101,7 @@ class RendererPpapiHostImpl
virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
base::PlatformFile handle,
bool should_close_source) OVERRIDE;
+ virtual bool IsRunningInProcess() const OVERRIDE;
private:
RendererPpapiHostImpl(webkit::ppapi::PluginModule* module,
@@ -124,6 +128,9 @@ class RendererPpapiHostImpl
// Null when running out-of-process.
scoped_ptr<PepperInProcessRouter> in_process_router_;
+ // Whether the plugin is running in process.
+ bool is_running_in_process_;
+
DISALLOW_COPY_AND_ASSIGN(RendererPpapiHostImpl);
};
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/pepper/renderer_ppapi_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698