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

Side by Side Diff: webkit/plugins/ppapi/ppb_file_ref_impl.h

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address dmichael's comments Created 7 years, 7 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
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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
12 #include "ppapi/c/pp_file_info.h" 13 #include "ppapi/c/pp_file_info.h"
13 #include "ppapi/c/ppb_file_ref.h" 14 #include "ppapi/c/ppb_file_ref.h"
14 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 15 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
15 #include "ppapi/shared_impl/scoped_pp_resource.h" 16 #include "ppapi/shared_impl/scoped_pp_resource.h"
16 #include "ppapi/shared_impl/var.h" 17 #include "ppapi/shared_impl/var.h"
17 #include "webkit/glue/webkit_glue_export.h" 18 #include "webkit/glue/webkit_glue_export.h"
18 19
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 PP_Time last_modified_time, 54 PP_Time last_modified_time,
54 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 55 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
55 virtual int32_t Delete( 56 virtual int32_t Delete(
56 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 57 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
57 virtual int32_t Rename( 58 virtual int32_t Rename(
58 PP_Resource new_file_ref, 59 PP_Resource new_file_ref,
59 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 60 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
60 virtual int32_t Query( 61 virtual int32_t Query(
61 PP_FileInfo* info, 62 PP_FileInfo* info,
62 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; 63 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
64 virtual int32_t ReadEntries(
65 const PP_ArrayOutput& output,
66 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
67 virtual int32_t ReadEntriesInHost(
68 std::vector< ::ppapi::PPB_FileRef_CreateInfo>* files,
69 std::vector<PP_FileType>* file_types,
70 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
63 virtual PP_Var GetAbsolutePath(); 71 virtual PP_Var GetAbsolutePath();
64 72
65 PP_Resource file_system_resource() const { return file_system_; } 73 PP_Resource file_system_resource() const { return file_system_; }
66 74
67 // Returns the system path corresponding to this file. Valid only for 75 // Returns the system path corresponding to this file. Valid only for
68 // external filesystems. 76 // external filesystems.
69 base::FilePath GetSystemPath() const; 77 base::FilePath GetSystemPath() const;
70 78
71 // Returns the FileSystem API URL corresponding to this file. 79 // Returns the FileSystem API URL corresponding to this file.
72 GURL GetFileSystemURL() const; 80 GURL GetFileSystemURL() const;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // return the identical string object every time it is requested. 114 // return the identical string object every time it is requested.
107 scoped_refptr<StringVar> external_path_var_; 115 scoped_refptr<StringVar> external_path_var_;
108 116
109 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 117 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
110 }; 118 };
111 119
112 } // namespace ppapi 120 } // namespace ppapi
113 } // namespace webkit 121 } // namespace webkit
114 122
115 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 123 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698