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

Side by Side Diff: ppapi/cpp/directory_entry.h

Issue 14419003: PPAPI: Move PPB_DirectoryReader_Dev to stable (won't commit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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/ppb_directory_reader.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/04/23 16:08:59 Please add some documentation for the class and co
nhiroki 2013/04/24 02:01:45 Done.
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.
dmichael (off chromium) 2013/04/23 16:08:59 The comments here should be in doxygen-style (thre
nhiroki 2013/04/24 02:01:45 Done.
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