OLD | NEW |
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_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/renderer/pepper/pepper_instance_state_accessor_impl.h" |
10 #include "webkit/plugins/ppapi/resource_creation_impl.h" | 11 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
11 | 12 |
12 class RenderViewImpl; | 13 class RenderViewImpl; |
13 | 14 |
14 namespace ppapi { | 15 namespace ppapi { |
15 class PpapiPermissions; | 16 class PpapiPermissions; |
16 } | 17 } |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
(...skipping 15 matching lines...) Expand all Loading... |
35 // ResourceCreationProxy for all resources. This class is just glue to manage | 36 // ResourceCreationProxy for all resources. This class is just glue to manage |
36 // the temporary "two different cases." | 37 // the temporary "two different cases." |
37 class PepperInProcessResourceCreation | 38 class PepperInProcessResourceCreation |
38 : public webkit::ppapi::ResourceCreationImpl { | 39 : public webkit::ppapi::ResourceCreationImpl { |
39 public: | 40 public: |
40 PepperInProcessResourceCreation(RenderViewImpl* render_view, | 41 PepperInProcessResourceCreation(RenderViewImpl* render_view, |
41 webkit::ppapi::PluginInstance* instance, | 42 webkit::ppapi::PluginInstance* instance, |
42 const ppapi::PpapiPermissions& perms); | 43 const ppapi::PpapiPermissions& perms); |
43 virtual ~PepperInProcessResourceCreation(); | 44 virtual ~PepperInProcessResourceCreation(); |
44 | 45 |
| 46 // ResourceCreation_API implementation. |
| 47 virtual PP_Resource CreateFileChooser( |
| 48 PP_Instance instance, |
| 49 PP_FileChooserMode_Dev mode, |
| 50 const char* accept_types) OVERRIDE; |
| 51 |
45 private: | 52 private: |
| 53 PepperInstanceStateAccessorImpl instance_state_; |
| 54 |
46 class HostToPluginRouter; | 55 class HostToPluginRouter; |
47 scoped_ptr<HostToPluginRouter> host_to_plugin_router_; | 56 scoped_ptr<HostToPluginRouter> host_to_plugin_router_; |
48 | 57 |
49 class PluginToHostRouter; | 58 class PluginToHostRouter; |
50 scoped_ptr<PluginToHostRouter> plugin_to_host_router_; | 59 scoped_ptr<PluginToHostRouter> plugin_to_host_router_; |
51 | 60 |
52 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); | 61 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); |
53 }; | 62 }; |
54 | 63 |
55 } // namespace content | 64 } // namespace content |
56 | 65 |
57 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ | 66 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ |
OLD | NEW |