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 #include "webkit/plugins/ppapi/resource_creation_impl.h" | 5 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
6 | 6 |
7 #include "ppapi/c/pp_size.h" | 7 #include "ppapi/c/pp_size.h" |
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" | 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 namespace webkit { | 49 namespace webkit { |
50 namespace ppapi { | 50 namespace ppapi { |
51 | 51 |
52 ResourceCreationImpl::ResourceCreationImpl(PluginInstance* instance) { | 52 ResourceCreationImpl::ResourceCreationImpl(PluginInstance* instance) { |
53 } | 53 } |
54 | 54 |
55 ResourceCreationImpl::~ResourceCreationImpl() { | 55 ResourceCreationImpl::~ResourceCreationImpl() { |
56 } | 56 } |
57 | 57 |
58 ::ppapi::thunk::ResourceCreationAPI* | |
59 ResourceCreationImpl::AsResourceCreationAPI() { | |
60 return this; | |
61 } | |
62 | |
63 PP_Resource ResourceCreationImpl::CreateAudio( | 58 PP_Resource ResourceCreationImpl::CreateAudio( |
64 PP_Instance instance, | 59 PP_Instance instance, |
65 PP_Resource config_id, | 60 PP_Resource config_id, |
66 PPB_Audio_Callback audio_callback, | 61 PPB_Audio_Callback audio_callback, |
67 void* user_data) { | 62 void* user_data) { |
68 return PPB_Audio_Impl::Create(instance, config_id, audio_callback, | 63 return PPB_Audio_Impl::Create(instance, config_id, audio_callback, |
69 user_data); | 64 user_data); |
70 } | 65 } |
71 | 66 |
72 PP_Resource ResourceCreationImpl::CreateAudioConfig( | 67 PP_Resource ResourceCreationImpl::CreateAudioConfig( |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 instance, data))->GetReference(); | 342 instance, data))->GetReference(); |
348 } | 343 } |
349 | 344 |
350 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 345 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
351 PP_Instance instance) { | 346 PP_Instance instance) { |
352 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 347 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
353 } | 348 } |
354 | 349 |
355 } // namespace ppapi | 350 } // namespace ppapi |
356 } // namespace webkit | 351 } // namespace webkit |
OLD | NEW |