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

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 upstream Created 8 years, 2 months 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 3625de2bb400ea0e90c3f116f9ce084dd9d10c30..84ae896a88a5a0efcfe95173036d92207e4a230c 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 {
@@ -84,11 +85,14 @@ class RendererPpapiHostImpl
// RendererPpapiHost.
virtual ppapi::host::PpapiHost* GetPpapiHost() OVERRIDE;
virtual bool IsValidInstance(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(
PP_Instance instance) const OVERRIDE;
virtual bool HasUserGesture(PP_Instance instance) const OVERRIDE;
+ virtual bool IsRunningInProcess() const OVERRIDE;
private:
RendererPpapiHostImpl(webkit::ppapi::PluginModule* module,
@@ -113,6 +117,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);
};

Powered by Google App Engine
This is Rietveld 408576698