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

Unified Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 11958033: Implement Pepper proxy for PPB_DirectoryReader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/resource_creation_proxy.cc
diff --git a/ppapi/proxy/resource_creation_proxy.cc b/ppapi/proxy/resource_creation_proxy.cc
index 90a23bb844eee8d1f83ca4308bfec8581551706e..f012a5ce2f8dafd55fe8377e976de5f6cc4eb01b 100644
--- a/ppapi/proxy/resource_creation_proxy.cc
+++ b/ppapi/proxy/resource_creation_proxy.cc
@@ -10,6 +10,7 @@
#include "ppapi/proxy/audio_input_resource.h"
#include "ppapi/proxy/browser_font_resource_trusted.h"
#include "ppapi/proxy/connection.h"
+#include "ppapi/proxy/directory_reader_resource.h"
#include "ppapi/proxy/file_chooser_resource.h"
#include "ppapi/proxy/flash_device_id_resource.h"
#include "ppapi/proxy/flash_font_file_resource.h"
@@ -317,8 +318,10 @@ PP_Resource ResourceCreationProxy::CreateBuffer(PP_Instance instance,
PP_Resource ResourceCreationProxy::CreateDirectoryReader(
PP_Resource directory_ref) {
- NOTIMPLEMENTED(); // Not proxied yet.
- return 0;
+ Resource* object =
+ PpapiGlobals::Get()->GetResourceTracker()->GetResource(directory_ref);
+ return (new DirectoryReaderResource(
+ GetConnection(), object->pp_instance(), directory_ref))->GetReference();
}
PP_Resource ResourceCreationProxy::CreateFlashDeviceID(PP_Instance instance) {

Powered by Google App Engine
This is Rietveld 408576698