| 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 PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
| 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const PP_Size& size, | 118 const PP_Size& size, |
| 119 PP_Bool init_to_zero) OVERRIDE; | 119 PP_Bool init_to_zero) OVERRIDE; |
| 120 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, | 120 virtual PP_Resource CreateImageDataNaCl(PP_Instance instance, |
| 121 PP_ImageDataFormat format, | 121 PP_ImageDataFormat format, |
| 122 const PP_Size& size, | 122 const PP_Size& size, |
| 123 PP_Bool init_to_zero) OVERRIDE; | 123 PP_Bool init_to_zero) OVERRIDE; |
| 124 virtual PP_Resource CreateNetworkMonitor( | 124 virtual PP_Resource CreateNetworkMonitor( |
| 125 PP_Instance instance, | 125 PP_Instance instance, |
| 126 PPB_NetworkMonitor_Callback callback, | 126 PPB_NetworkMonitor_Callback callback, |
| 127 void* user_data) OVERRIDE; | 127 void* user_data) OVERRIDE; |
| 128 virtual PP_Resource CreatePrinting(PP_Instance) OVERRIDE; |
| 128 virtual PP_Resource CreateTCPServerSocketPrivate( | 129 virtual PP_Resource CreateTCPServerSocketPrivate( |
| 129 PP_Instance instance) OVERRIDE; | 130 PP_Instance instance) OVERRIDE; |
| 130 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instance) OVERRIDE; | 131 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instance) OVERRIDE; |
| 131 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instance) OVERRIDE; | 132 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instance) OVERRIDE; |
| 132 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE; | 133 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE; |
| 133 virtual PP_Resource CreateX509CertificatePrivate( | 134 virtual PP_Resource CreateX509CertificatePrivate( |
| 134 PP_Instance instance) OVERRIDE; | 135 PP_Instance instance) OVERRIDE; |
| 135 #if !defined(OS_NACL) | 136 #if !defined(OS_NACL) |
| 136 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; | 137 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; |
| 137 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 138 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
| 138 virtual PP_Resource CreateBrowserFont( | 139 virtual PP_Resource CreateBrowserFont( |
| 139 PP_Instance instance, | 140 PP_Instance instance, |
| 140 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; | 141 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; |
| 141 virtual PP_Resource CreateBuffer(PP_Instance instance, | 142 virtual PP_Resource CreateBuffer(PP_Instance instance, |
| 142 uint32_t size) OVERRIDE; | 143 uint32_t size) OVERRIDE; |
| 143 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; | 144 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; |
| 144 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; | 145 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; |
| 145 virtual PP_Resource CreateFlashFontFile( | 146 virtual PP_Resource CreateFlashFontFile( |
| 146 PP_Instance instance, | 147 PP_Instance instance, |
| 147 const PP_FontDescription_Dev* description, | 148 const PP_FontDescription_Dev* description, |
| 148 PP_PrivateFontCharset charset) OVERRIDE; | 149 PP_PrivateFontCharset charset) OVERRIDE; |
| 149 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 150 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
| 150 const PP_Flash_Menu* menu_data) OVERRIDE; | 151 const PP_Flash_Menu* menu_data) OVERRIDE; |
| 151 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; | 152 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; |
| 152 virtual PP_Resource CreatePrinting(PP_Instance) OVERRIDE; | |
| 153 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 153 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
| 154 PP_Bool vertical) OVERRIDE; | 154 PP_Bool vertical) OVERRIDE; |
| 155 virtual PP_Resource CreateTalk(PP_Instance instance) OVERRIDE; | 155 virtual PP_Resource CreateTalk(PP_Instance instance) OVERRIDE; |
| 156 virtual PP_Resource CreateVideoCapture(PP_Instance instance) OVERRIDE; | 156 virtual PP_Resource CreateVideoCapture(PP_Instance instance) OVERRIDE; |
| 157 virtual PP_Resource CreateVideoDecoder( | 157 virtual PP_Resource CreateVideoDecoder( |
| 158 PP_Instance instance, | 158 PP_Instance instance, |
| 159 PP_Resource context3d_id, | 159 PP_Resource context3d_id, |
| 160 PP_VideoDecoder_Profile profile) OVERRIDE; | 160 PP_VideoDecoder_Profile profile) OVERRIDE; |
| 161 #endif // !defined(OS_NACL) | 161 #endif // !defined(OS_NACL) |
| 162 | 162 |
| 163 virtual bool Send(IPC::Message* msg) OVERRIDE; | 163 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 164 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 164 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 Connection GetConnection(); | 167 Connection GetConnection(); |
| 168 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 168 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace proxy | 171 } // namespace proxy |
| 172 } // namespace ppapi | 172 } // namespace ppapi |
| 173 | 173 |
| 174 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 174 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
| OLD | NEW |