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

Side by Side Diff: content/renderer/pepper/resource_creation_impl.h

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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
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 CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class PepperPluginInstanceImpl; 14 class PepperPluginInstanceImpl;
15 15
16 // This is an abstract class. ResourceCreationAPI functions that implement 16 // This is an abstract class. ResourceCreationAPI functions that implement
17 // "old-style" resources are handled here. See 17 // "old-style" resources are handled here. See
18 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions 18 // content/renderer/pepper/pepper_in_process_resource_creation.h for functions
19 // that implement "new-style" resources. 19 // that implement "new-style" resources.
20 class ResourceCreationImpl : public ppapi::thunk::ResourceCreationAPI { 20 class ResourceCreationImpl : public ppapi::thunk::ResourceCreationAPI {
21 public: 21 public:
22 explicit ResourceCreationImpl(PepperPluginInstanceImpl* instance); 22 explicit ResourceCreationImpl(PepperPluginInstanceImpl* instance);
23 virtual ~ResourceCreationImpl(); 23 virtual ~ResourceCreationImpl();
24 24
25 // ResourceCreationAPI implementation. 25 // ResourceCreationAPI implementation.
26 virtual PP_Resource CreateAudio1_0(PP_Instance instance,
27 PP_Resource config_id,
28 PPB_Audio_Callback_1_0 audio_callback,
29 void* user_data) OVERRIDE;
26 virtual PP_Resource CreateAudio(PP_Instance instance, 30 virtual PP_Resource CreateAudio(PP_Instance instance,
27 PP_Resource config_id, 31 PP_Resource config_id,
28 PPB_Audio_Callback audio_callback, 32 PPB_Audio_Callback audio_callback,
29 void* user_data) OVERRIDE; 33 void* user_data) OVERRIDE;
30 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; 34 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE;
31 virtual PP_Resource CreateAudioConfig(PP_Instance instance, 35 virtual PP_Resource CreateAudioConfig(PP_Instance instance,
32 PP_AudioSampleRate sample_rate, 36 PP_AudioSampleRate sample_rate,
33 uint32_t sample_frame_count) OVERRIDE; 37 uint32_t sample_frame_count) OVERRIDE;
34 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; 38 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE;
35 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; 39 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 virtual PP_Resource CreateX509CertificatePrivate( 140 virtual PP_Resource CreateX509CertificatePrivate(
137 PP_Instance instance) OVERRIDE; 141 PP_Instance instance) OVERRIDE;
138 142
139 private: 143 private:
140 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); 144 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl);
141 }; 145 };
142 146
143 } // namespace content 147 } // namespace content
144 148
145 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_ 149 #endif // CONTENT_RENDERER_PEPPER_RESOURCE_CREATION_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.cc ('k') | content/renderer/pepper/resource_creation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698