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

Side by Side Diff: ppapi/cpp/directory_entry.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PPAPI_CPP_DEV_DIRECTORY_ENTRY_DEV_H_ 5 #ifndef PPAPI_CPP_DIRECTORY_ENTRY_H_
6 #define PPAPI_CPP_DEV_DIRECTORY_ENTRY_DEV_H_ 6 #define PPAPI_CPP_DIRECTORY_ENTRY_H_
7 7
8 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 8 #include "ppapi/c/pp_directory_entry.h"
9 #include "ppapi/cpp/file_ref.h" 9 #include "ppapi/cpp/file_ref.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class DirectoryEntry_Dev { 13 class DirectoryEntry {
dmichael (off chromium) 2013/05/02 20:39:13 Oops, didn't notice before... please add some dox
hamaji 2013/05/02 22:45:14 Done. Thanks for the URL!
dmichael (off chromium) 2013/05/02 23:20:43 Please have another look at the link; there was mo
hamaji 2013/05/02 23:36:33 Oops, sorry :(
14 public: 14 public:
15 DirectoryEntry_Dev(); 15 DirectoryEntry();
16 DirectoryEntry_Dev(PassRef, const PP_DirectoryEntry_Dev& data); 16 DirectoryEntry(PassRef, const PP_DirectoryEntry& data);
17 DirectoryEntry_Dev(const DirectoryEntry_Dev& other); 17 DirectoryEntry(const DirectoryEntry& other);
18 18
19 ~DirectoryEntry_Dev(); 19 ~DirectoryEntry();
20 20
21 DirectoryEntry_Dev& operator=(const DirectoryEntry_Dev& other); 21 DirectoryEntry& operator=(const DirectoryEntry& other);
22 22
23 // Returns true if the DirectoryEntry is invalid or uninitialized. 23 // Returns true if the DirectoryEntry is invalid or uninitialized.
24 bool is_null() const { return !data_.file_ref; } 24 bool is_null() const { return !data_.file_ref; }
25 25
26 // Returns the FileRef held by this DirectoryEntry. 26 // Returns the FileRef held by this DirectoryEntry.
27 FileRef file_ref() const { return FileRef(data_.file_ref); } 27 FileRef file_ref() const { return FileRef(data_.file_ref); }
28 28
29 // Returns the type of the file referenced by this DirectoryEntry. 29 // Returns the type of the file referenced by this DirectoryEntry.
30 PP_FileType file_type() const { return data_.file_type; } 30 PP_FileType file_type() const { return data_.file_type; }
31 31
32 private: 32 private:
33 PP_DirectoryEntry_Dev data_; 33 PP_DirectoryEntry data_;
34 }; 34 };
35 35
36 } // namespace pp 36 } // namespace pp
37 37
38 #endif // PPAPI_CPP_DEV_DIRECTORY_ENTRY_DEV_H_ 38 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698