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

Unified Diff: webkit/glue/plugins/pepper_file_system.cc

Issue 2822031: File API boilerplate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « webkit/glue/plugins/pepper_file_system.h ('k') | webkit/glue/plugins/pepper_plugin_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_file_system.cc
===================================================================
--- webkit/glue/plugins/pepper_file_system.cc (revision 0)
+++ webkit/glue/plugins/pepper_file_system.cc (revision 0)
@@ -0,0 +1,59 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/glue/plugins/pepper_file_system.h"
+
+#include "third_party/ppapi/c/pp_completion_callback.h"
+#include "third_party/ppapi/c/pp_errors.h"
+#include "third_party/ppapi/c/ppb_file_system.h"
+
+namespace pepper {
+
+namespace {
+
+int32_t MakeDirectory(PP_Resource directory_ref,
+ bool make_ancestors,
+ PP_CompletionCallback callback) {
+ return PP_Error_Failed; // TODO(darin): Implement me!
+}
+
+int32_t Query(PP_Resource file_ref,
+ PP_FileInfo* info,
+ PP_CompletionCallback callback) {
+ return PP_Error_Failed; // TODO(darin): Implement me!
+}
+
+int32_t Touch(PP_Resource file_ref,
+ PP_Time last_access_time,
+ PP_Time last_modified_time,
+ PP_CompletionCallback callback) {
+ return PP_Error_Failed; // TODO(darin): Implement me!
+}
+
+int32_t Delete(PP_Resource file_ref,
+ PP_CompletionCallback callback) {
+ return PP_Error_Failed; // TODO(darin): Implement me!
+}
+
+int32_t Rename(PP_Resource file_ref,
+ PP_Resource new_file_ref,
+ PP_CompletionCallback callback) {
+ return PP_Error_Failed; // TODO(darin): Implement me!
+}
+
+const PPB_FileSystem ppb_filesystem = {
+ &MakeDirectory,
+ &Query,
+ &Touch,
+ &Delete,
+ &Rename
+};
+
+} // namespace
+
+const PPB_FileSystem* FileSystem::GetInterface() {
+ return &ppb_filesystem;
+}
+
+} // namespace pepper
Property changes on: webkit\glue\plugins\pepper_file_system.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/glue/plugins/pepper_file_system.h ('k') | webkit/glue/plugins/pepper_plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698