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

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 comments by dmichael and raymes 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 /// The <code>DirectoryEntry</code> class represents information about
14 /// a directory entry.
15 class DirectoryEntry {
14 public: 16 public:
15 DirectoryEntry_Dev(); 17 DirectoryEntry();
16 DirectoryEntry_Dev(PassRef, const PP_DirectoryEntry_Dev& data); 18 DirectoryEntry(PassRef, const PP_DirectoryEntry& data);
17 DirectoryEntry_Dev(const DirectoryEntry_Dev& other); 19 DirectoryEntry(const DirectoryEntry& other);
18 20
19 ~DirectoryEntry_Dev(); 21 ~DirectoryEntry();
20 22
21 DirectoryEntry_Dev& operator=(const DirectoryEntry_Dev& other); 23 DirectoryEntry& operator=(const DirectoryEntry& other);
22 24
23 // Returns true if the DirectoryEntry is invalid or uninitialized. 25 // Returns true if the DirectoryEntry is invalid or uninitialized.
24 bool is_null() const { return !data_.file_ref; } 26 bool is_null() const { return !data_.file_ref; }
25 27
26 // Returns the FileRef held by this DirectoryEntry. 28 // Returns the FileRef held by this DirectoryEntry.
27 FileRef file_ref() const { return FileRef(data_.file_ref); } 29 FileRef file_ref() const { return FileRef(data_.file_ref); }
28 30
29 // Returns the type of the file referenced by this DirectoryEntry. 31 // Returns the type of the file referenced by this DirectoryEntry.
30 PP_FileType file_type() const { return data_.file_type; } 32 PP_FileType file_type() const { return data_.file_type; }
31 33
32 private: 34 private:
33 PP_DirectoryEntry_Dev data_; 35 PP_DirectoryEntry data_;
34 }; 36 };
35 37
36 } // namespace pp 38 } // namespace pp
37 39
38 #endif // PPAPI_CPP_DEV_DIRECTORY_ENTRY_DEV_H_ 40 #endif // PPAPI_CPP_DIRECTORY_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698