| 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/ppb_input_event_shared.h" | 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
| 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { | 72 PP_Resource ResourceCreationImpl::CreateBroker(PP_Instance instance) { |
| 73 return (new PPB_Broker_Impl(instance))->GetReference(); | 73 return (new PPB_Broker_Impl(instance))->GetReference(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance, | 76 PP_Resource ResourceCreationImpl::CreateBuffer(PP_Instance instance, |
| 77 uint32_t size) { | 77 uint32_t size) { |
| 78 return PPB_Buffer_Impl::Create(instance, size); | 78 return PPB_Buffer_Impl::Create(instance, size); |
| 79 } | 79 } |
| 80 | 80 |
| 81 PP_Resource ResourceCreationImpl::CreateDirectoryReader( | 81 PP_Resource ResourceCreationImpl::CreateDirectoryReader( |
| 82 PP_Instance instance, |
| 82 PP_Resource directory_ref) { | 83 PP_Resource directory_ref) { |
| 83 return PPB_DirectoryReader_Impl::Create(directory_ref); | 84 return PPB_DirectoryReader_Impl::Create(directory_ref); |
| 84 } | 85 } |
| 85 | 86 |
| 86 PP_Resource ResourceCreationImpl::CreateFileRef(PP_Resource file_system, | 87 PP_Resource ResourceCreationImpl::CreateFileRef(PP_Resource file_system, |
| 87 const char* path) { | 88 const char* path) { |
| 88 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); | 89 PPB_FileRef_Impl* res = PPB_FileRef_Impl::CreateInternal(file_system, path); |
| 89 return res ? res->GetReference() : 0; | 90 return res ? res->GetReference() : 0; |
| 90 } | 91 } |
| 91 | 92 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 wheel_delta, wheel_ticks, scroll_by_page); | 263 wheel_delta, wheel_ticks, scroll_by_page); |
| 263 } | 264 } |
| 264 | 265 |
| 265 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 266 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 266 PP_Instance instance) { | 267 PP_Instance instance) { |
| 267 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 268 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
| 268 } | 269 } |
| 269 | 270 |
| 270 } // namespace ppapi | 271 } // namespace ppapi |
| 271 } // namespace webkit | 272 } // namespace webkit |
| OLD | NEW |