| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, | 106 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, |
| 107 const PP_Size& size, | 107 const PP_Size& size, |
| 108 PP_Bool is_always_opaque) OVERRIDE; | 108 PP_Bool is_always_opaque) OVERRIDE; |
| 109 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 109 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 110 PP_Resource share_context, | 110 PP_Resource share_context, |
| 111 const int32_t* attrib_list) OVERRIDE; | 111 const int32_t* attrib_list) OVERRIDE; |
| 112 virtual PP_Resource CreateGraphics3DRaw( | 112 virtual PP_Resource CreateGraphics3DRaw( |
| 113 PP_Instance instance, | 113 PP_Instance instance, |
| 114 PP_Resource share_context, | 114 PP_Resource share_context, |
| 115 const int32_t* attrib_list) OVERRIDE; | 115 const int32_t* attrib_list) OVERRIDE; |
| 116 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; |
| 117 virtual PP_Resource CreateTCPServerSocketPrivate( |
| 118 PP_Instance instance) OVERRIDE; |
| 119 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instance) OVERRIDE; |
| 120 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instance) OVERRIDE; |
| 121 virtual PP_Resource CreateX509CertificatePrivate( |
| 122 PP_Instance instance) OVERRIDE; |
| 116 #if !defined(OS_NACL) | 123 #if !defined(OS_NACL) |
| 117 virtual PP_Resource CreateAudioInput0_1( | 124 virtual PP_Resource CreateAudioInput0_1( |
| 118 PP_Instance instance, | 125 PP_Instance instance, |
| 119 PP_Resource config_id, | 126 PP_Resource config_id, |
| 120 PPB_AudioInput_Callback audio_input_callback, | 127 PPB_AudioInput_Callback audio_input_callback, |
| 121 void* user_data) OVERRIDE; | 128 void* user_data) OVERRIDE; |
| 122 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; | 129 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; |
| 123 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 130 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
| 124 virtual PP_Resource CreateBrowserFont( | 131 virtual PP_Resource CreateBrowserFont( |
| 125 PP_Instance instance, | 132 PP_Instance instance, |
| 126 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; | 133 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; |
| 127 virtual PP_Resource CreateBuffer(PP_Instance instance, | 134 virtual PP_Resource CreateBuffer(PP_Instance instance, |
| 128 uint32_t size) OVERRIDE; | 135 uint32_t size) OVERRIDE; |
| 129 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; | 136 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; |
| 130 virtual PP_Resource CreateFileChooser( | 137 virtual PP_Resource CreateFileChooser( |
| 131 PP_Instance instance, | 138 PP_Instance instance, |
| 132 PP_FileChooserMode_Dev mode, | 139 PP_FileChooserMode_Dev mode, |
| 133 const char* accept_types) OVERRIDE; | 140 const char* accept_types) OVERRIDE; |
| 134 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; | 141 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; |
| 135 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 142 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
| 136 const PP_Flash_Menu* menu_data) OVERRIDE; | 143 const PP_Flash_Menu* menu_data) OVERRIDE; |
| 137 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; | 144 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; |
| 138 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) OVERRIDE; | |
| 139 virtual PP_Resource CreateNetworkMonitor( | 145 virtual PP_Resource CreateNetworkMonitor( |
| 140 PP_Instance instance, | 146 PP_Instance instance, |
| 141 PPB_NetworkMonitor_Callback callback, | 147 PPB_NetworkMonitor_Callback callback, |
| 142 void* user_data) OVERRIDE; | 148 void* user_data) OVERRIDE; |
| 143 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 149 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
| 144 PP_Bool vertical) OVERRIDE; | 150 PP_Bool vertical) OVERRIDE; |
| 145 virtual PP_Resource CreateTalk(PP_Instance instance) OVERRIDE; | 151 virtual PP_Resource CreateTalk(PP_Instance instance) OVERRIDE; |
| 146 virtual PP_Resource CreateTCPServerSocketPrivate( | |
| 147 PP_Instance instance) OVERRIDE; | |
| 148 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instance) OVERRIDE; | |
| 149 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instance) OVERRIDE; | |
| 150 virtual PP_Resource CreateVideoCapture(PP_Instance instance) OVERRIDE; | 152 virtual PP_Resource CreateVideoCapture(PP_Instance instance) OVERRIDE; |
| 151 virtual PP_Resource CreateVideoDecoder( | 153 virtual PP_Resource CreateVideoDecoder( |
| 152 PP_Instance instance, | 154 PP_Instance instance, |
| 153 PP_Resource context3d_id, | 155 PP_Resource context3d_id, |
| 154 PP_VideoDecoder_Profile profile) OVERRIDE; | 156 PP_VideoDecoder_Profile profile) OVERRIDE; |
| 155 virtual PP_Resource CreateVideoLayer(PP_Instance instance, | 157 virtual PP_Resource CreateVideoLayer(PP_Instance instance, |
| 156 PP_VideoLayerMode_Dev mode) OVERRIDE; | 158 PP_VideoLayerMode_Dev mode) OVERRIDE; |
| 157 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE; | 159 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE; |
| 158 virtual PP_Resource CreateX509CertificatePrivate( | |
| 159 PP_Instance instance) OVERRIDE; | |
| 160 #endif // !defined(OS_NACL) | 160 #endif // !defined(OS_NACL) |
| 161 | 161 |
| 162 virtual bool Send(IPC::Message* msg) OVERRIDE; | 162 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 163 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 163 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 164 | 164 |
| 165 private: | 165 private: |
| 166 Connection GetConnection(); | 166 Connection GetConnection(); |
| 167 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 167 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace proxy | 170 } // namespace proxy |
| 171 } // namespace ppapi | 171 } // namespace ppapi |
| 172 | 172 |
| 173 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 173 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
| OLD | NEW |