| 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 "ppapi/proxy/connection.h" | 10 #include "ppapi/proxy/connection.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // resource creation and adds in the resources that we implement in | 31 // resource creation and adds in the resources that we implement in |
| 32 // ppapi/proxy. | 32 // ppapi/proxy. |
| 33 // | 33 // |
| 34 // When we convert all resources to use the new-style, we can just use the | 34 // When we convert all resources to use the new-style, we can just use the |
| 35 // ResourceCreationProxy for all resources. This class is just glue to manage | 35 // ResourceCreationProxy for all resources. This class is just glue to manage |
| 36 // the temporary "two different cases." | 36 // the temporary "two different cases." |
| 37 class PepperInProcessResourceCreation | 37 class PepperInProcessResourceCreation |
| 38 : public webkit::ppapi::ResourceCreationImpl { | 38 : public webkit::ppapi::ResourceCreationImpl { |
| 39 public: | 39 public: |
| 40 PepperInProcessResourceCreation(RendererPpapiHostImpl* host_impl, | 40 PepperInProcessResourceCreation(RendererPpapiHostImpl* host_impl, |
| 41 webkit::ppapi::PluginInstance* instance); | 41 webkit::ppapi::PluginInstanceImpl* instance); |
| 42 virtual ~PepperInProcessResourceCreation(); | 42 virtual ~PepperInProcessResourceCreation(); |
| 43 | 43 |
| 44 // ResourceCreation_API implementation. | 44 // ResourceCreation_API implementation. |
| 45 virtual PP_Resource CreateBrowserFont( | 45 virtual PP_Resource CreateBrowserFont( |
| 46 PP_Instance instance, | 46 PP_Instance instance, |
| 47 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; | 47 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; |
| 48 virtual PP_Resource CreateFileChooser( | 48 virtual PP_Resource CreateFileChooser( |
| 49 PP_Instance instance, | 49 PP_Instance instance, |
| 50 PP_FileChooserMode_Dev mode, | 50 PP_FileChooserMode_Dev mode, |
| 51 const PP_Var& accept_types) OVERRIDE; | 51 const PP_Var& accept_types) OVERRIDE; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 71 private: | 71 private: |
| 72 // Non-owning pointer to the host for the current plugin. | 72 // Non-owning pointer to the host for the current plugin. |
| 73 RendererPpapiHostImpl* host_impl_; | 73 RendererPpapiHostImpl* host_impl_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); | 75 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ |
| OLD | NEW |