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

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

Issue 10544089: Implement the file chooser as a new resource "host" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/content_renderer_pepper_host_factory.h
diff --git a/content/renderer/pepper/content_renderer_pepper_host_factory.h b/content/renderer/pepper/content_renderer_pepper_host_factory.h
index dbb36afb9304979db013720f10e5a73c5419fb01..ad92f5b9f47144034dfcdb5e6797d14e92dd7785 100644
--- a/content/renderer/pepper/content_renderer_pepper_host_factory.h
+++ b/content/renderer/pepper/content_renderer_pepper_host_factory.h
@@ -7,14 +7,20 @@
#include "base/compiler_specific.h"
#include "ppapi/host/host_factory.h"
+#include "ppapi/shared_impl/ppapi_permissions.h"
class RenderViewImpl;
namespace content {
+class PepperInstanceStateAccessor;
+
class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
public:
- explicit ContentRendererPepperHostFactory(RenderViewImpl* render_view);
+ explicit ContentRendererPepperHostFactory(
+ RenderViewImpl* render_view,
+ const ppapi::PpapiPermissions& permissions,
+ PepperInstanceStateAccessor* state);
virtual ~ContentRendererPepperHostFactory();
virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
@@ -24,7 +30,9 @@ class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
const IPC::Message& message) OVERRIDE;
private:
- RenderViewImpl* render_view_;
+ RenderViewImpl* render_view_; // Non-owning.
+ ppapi::PpapiPermissions permissions_;
+ PepperInstanceStateAccessor* instance_state_; // Non-owning.
DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
};

Powered by Google App Engine
This is Rietveld 408576698