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

Side by Side 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, 5 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/glue/plugins/pepper_file_system.h"
6
7 #include "third_party/ppapi/c/pp_completion_callback.h"
8 #include "third_party/ppapi/c/pp_errors.h"
9 #include "third_party/ppapi/c/ppb_file_system.h"
10
11 namespace pepper {
12
13 namespace {
14
15 int32_t MakeDirectory(PP_Resource directory_ref,
16 bool make_ancestors,
17 PP_CompletionCallback callback) {
18 return PP_Error_Failed; // TODO(darin): Implement me!
19 }
20
21 int32_t Query(PP_Resource file_ref,
22 PP_FileInfo* info,
23 PP_CompletionCallback callback) {
24 return PP_Error_Failed; // TODO(darin): Implement me!
25 }
26
27 int32_t Touch(PP_Resource file_ref,
28 PP_Time last_access_time,
29 PP_Time last_modified_time,
30 PP_CompletionCallback callback) {
31 return PP_Error_Failed; // TODO(darin): Implement me!
32 }
33
34 int32_t Delete(PP_Resource file_ref,
35 PP_CompletionCallback callback) {
36 return PP_Error_Failed; // TODO(darin): Implement me!
37 }
38
39 int32_t Rename(PP_Resource file_ref,
40 PP_Resource new_file_ref,
41 PP_CompletionCallback callback) {
42 return PP_Error_Failed; // TODO(darin): Implement me!
43 }
44
45 const PPB_FileSystem ppb_filesystem = {
46 &MakeDirectory,
47 &Query,
48 &Touch,
49 &Delete,
50 &Rename
51 };
52
53 } // namespace
54
55 const PPB_FileSystem* FileSystem::GetInterface() {
56 return &ppb_filesystem;
57 }
58
59 } // namespace pepper
OLDNEW
« 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