| 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/resource_creation_impl.h" | 10 #include "content/renderer/pepper/resource_creation_impl.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // ResourceCreation_API implementation. | 43 // ResourceCreation_API implementation. |
| 44 virtual PP_Resource CreateBrowserFont( | 44 virtual PP_Resource CreateBrowserFont( |
| 45 PP_Instance instance, | 45 PP_Instance instance, |
| 46 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; | 46 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; |
| 47 virtual PP_Resource CreateFileChooser( | 47 virtual PP_Resource CreateFileChooser( |
| 48 PP_Instance instance, | 48 PP_Instance instance, |
| 49 PP_FileChooserMode_Dev mode, | 49 PP_FileChooserMode_Dev mode, |
| 50 const PP_Var& accept_types) OVERRIDE; | 50 const PP_Var& accept_types) OVERRIDE; |
| 51 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; | 51 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; |
| 52 virtual PP_Resource CreateFileRef( |
| 53 PP_Instance instance, |
| 54 const ppapi::FileRefCreateInfo& create_info) OVERRIDE; |
| 52 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 55 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
| 53 PP_FileSystemType type) OVERRIDE; | 56 PP_FileSystemType type) OVERRIDE; |
| 54 virtual PP_Resource CreateGraphics2D( | 57 virtual PP_Resource CreateGraphics2D( |
| 55 PP_Instance pp_instance, | 58 PP_Instance pp_instance, |
| 56 const PP_Size* size, | 59 const PP_Size* size, |
| 57 PP_Bool is_always_opaque) OVERRIDE; | 60 PP_Bool is_always_opaque) OVERRIDE; |
| 58 virtual PP_Resource CreatePrinting( | 61 virtual PP_Resource CreatePrinting( |
| 59 PP_Instance instance) OVERRIDE; | 62 PP_Instance instance) OVERRIDE; |
| 60 virtual PP_Resource CreateTrueTypeFont( | 63 virtual PP_Resource CreateTrueTypeFont( |
| 61 PP_Instance instance, | 64 PP_Instance instance, |
| 62 const struct PP_TrueTypeFontDesc_Dev* desc) OVERRIDE; | 65 const struct PP_TrueTypeFontDesc_Dev* desc) OVERRIDE; |
| 63 virtual PP_Resource CreateURLLoader( | 66 virtual PP_Resource CreateURLLoader( |
| 64 PP_Instance instance) OVERRIDE; | 67 PP_Instance instance) OVERRIDE; |
| 65 virtual PP_Resource CreateURLRequestInfo( | 68 virtual PP_Resource CreateURLRequestInfo( |
| 66 PP_Instance instance) OVERRIDE; | 69 PP_Instance instance) OVERRIDE; |
| 67 virtual PP_Resource CreateWebSocket( | 70 virtual PP_Resource CreateWebSocket( |
| 68 PP_Instance instance) OVERRIDE; | 71 PP_Instance instance) OVERRIDE; |
| 69 | 72 |
| 70 private: | 73 private: |
| 71 // Non-owning pointer to the host for the current plugin. | 74 // Non-owning pointer to the host for the current plugin. |
| 72 RendererPpapiHostImpl* host_impl_; | 75 RendererPpapiHostImpl* host_impl_; |
| 73 | 76 |
| 74 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); | 77 DISALLOW_COPY_AND_ASSIGN(PepperInProcessResourceCreation); |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace content | 80 } // namespace content |
| 78 | 81 |
| 79 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ | 82 #endif // CONTENT_RENDERER_PEPPER_PEPPER_IN_PROCESS_RESOURCE_CREATION_H_ |
| OLD | NEW |