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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 11958033: Implement Pepper proxy for PPB_DirectoryReader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 7 years, 11 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 #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
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
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
OLDNEW
« ppapi/proxy/ppapi_messages.h ('K') | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698