Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: ppapi/thunk/resource_creation_api.h

Issue 10694115: Get the audio proxy building as untrusted code for NaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_THUNK_RESOURCE_CREATION_API_H_ 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_
7 7
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
10 #include "ppapi/c/dev/ppb_video_layer_dev.h" 10 #include "ppapi/c/dev/ppb_video_layer_dev.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 PP_TimeTicks time_stamp, 88 PP_TimeTicks time_stamp,
89 uint32_t modifiers, 89 uint32_t modifiers,
90 const PP_FloatPoint* wheel_delta, 90 const PP_FloatPoint* wheel_delta,
91 const PP_FloatPoint* wheel_ticks, 91 const PP_FloatPoint* wheel_ticks,
92 PP_Bool scroll_by_page) = 0; 92 PP_Bool scroll_by_page) = 0;
93 93
94 virtual PP_Resource CreateAudio(PP_Instance instance, 94 virtual PP_Resource CreateAudio(PP_Instance instance,
95 PP_Resource config_id, 95 PP_Resource config_id,
96 PPB_Audio_Callback audio_callback, 96 PPB_Audio_Callback audio_callback,
97 void* user_data) = 0; 97 void* user_data) = 0;
98 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0;
98 virtual PP_Resource CreateAudioConfig(PP_Instance instance, 99 virtual PP_Resource CreateAudioConfig(PP_Instance instance,
99 PP_AudioSampleRate sample_rate, 100 PP_AudioSampleRate sample_rate,
100 uint32_t sample_frame_count) = 0; 101 uint32_t sample_frame_count) = 0;
101 virtual PP_Resource CreateImageData(PP_Instance instance, 102 virtual PP_Resource CreateImageData(PP_Instance instance,
102 PP_ImageDataFormat format, 103 PP_ImageDataFormat format,
103 const PP_Size& size, 104 const PP_Size& size,
104 PP_Bool init_to_zero) = 0; 105 PP_Bool init_to_zero) = 0;
105 virtual PP_Resource CreateGraphics2D(PP_Instance instance, 106 virtual PP_Resource CreateGraphics2D(PP_Instance instance,
106 const PP_Size& size, 107 const PP_Size& size,
107 PP_Bool is_always_opaque) = 0; 108 PP_Bool is_always_opaque) = 0;
108 #if !defined(OS_NACL) 109 #if !defined(OS_NACL)
109 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0;
110 virtual PP_Resource CreateAudioInput0_1( 110 virtual PP_Resource CreateAudioInput0_1(
111 PP_Instance instance, 111 PP_Instance instance,
112 PP_Resource config_id, 112 PP_Resource config_id,
113 PPB_AudioInput_Callback audio_input_callback, 113 PPB_AudioInput_Callback audio_input_callback,
114 void* user_data) = 0; 114 void* user_data) = 0;
115 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0; 115 virtual PP_Resource CreateAudioInput(PP_Instance instance) = 0;
116 virtual PP_Resource CreateBroker(PP_Instance instance) = 0; 116 virtual PP_Resource CreateBroker(PP_Instance instance) = 0;
117 virtual PP_Resource CreateBrowserFont( 117 virtual PP_Resource CreateBrowserFont(
118 PP_Instance instance, 118 PP_Instance instance,
119 const PP_BrowserFont_Trusted_Description* description) = 0; 119 const PP_BrowserFont_Trusted_Description* description) = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; 155 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0;
156 #endif // !defined(OS_NACL) 156 #endif // !defined(OS_NACL)
157 157
158 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 158 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
159 }; 159 };
160 160
161 } // namespace thunk 161 } // namespace thunk
162 } // namespace ppapi 162 } // namespace ppapi
163 163
164 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 164 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698