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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/host/host_factory.h" 9 #include "ppapi/host/host_factory.h"
10 #include "ppapi/shared_impl/ppapi_permissions.h"
10 11
11 class RenderViewImpl; 12 class RenderViewImpl;
12 13
13 namespace content { 14 namespace content {
14 15
16 class PepperInstanceStateAccessor;
17
15 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory { 18 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
16 public: 19 public:
17 explicit ContentRendererPepperHostFactory(RenderViewImpl* render_view); 20 explicit ContentRendererPepperHostFactory(
21 RenderViewImpl* render_view,
22 const ppapi::PpapiPermissions& permissions,
23 PepperInstanceStateAccessor* state);
18 virtual ~ContentRendererPepperHostFactory(); 24 virtual ~ContentRendererPepperHostFactory();
19 25
20 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 26 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
21 ppapi::host::PpapiHost* host, 27 ppapi::host::PpapiHost* host,
22 const ppapi::proxy::ResourceMessageCallParams& params, 28 const ppapi::proxy::ResourceMessageCallParams& params,
23 PP_Instance instance, 29 PP_Instance instance,
24 const IPC::Message& message) OVERRIDE; 30 const IPC::Message& message) OVERRIDE;
25 31
26 private: 32 private:
27 RenderViewImpl* render_view_; 33 RenderViewImpl* render_view_; // Non-owning.
34 ppapi::PpapiPermissions permissions_;
35 PepperInstanceStateAccessor* instance_state_; // Non-owning.
28 36
29 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory); 37 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
30 }; 38 };
31 39
32 } // namespace content 40 } // namespace content
33 41
34 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 42 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698