summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/dev/directory_reader_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/dev/directory_reader_dev.h')
-rw-r--r--ppapi/cpp/dev/directory_reader_dev.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/ppapi/cpp/dev/directory_reader_dev.h b/ppapi/cpp/dev/directory_reader_dev.h
new file mode 100644
index 0000000..e90fbc0
--- /dev/null
+++ b/ppapi/cpp/dev/directory_reader_dev.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_CPP_DEV_DIRECTORY_READER_DEV_H_
+#define PPAPI_CPP_DEV_DIRECTORY_READER_DEV_H_
+
+#include <stdlib.h>
+
+#include "ppapi/c/dev/ppb_directory_reader_dev.h"
+#include "ppapi/cpp/resource.h"
+
+namespace pp {
+
+class CompletionCallback;
+class DirectoryEntry_Dev;
+class FileRef_Dev;
+
+class DirectoryReader_Dev : public Resource {
+ public:
+ // Creates a DirectoryReader for the given directory.
+ DirectoryReader_Dev(const FileRef_Dev& directory_ref);
+
+ DirectoryReader_Dev(const DirectoryReader_Dev& other);
+
+ DirectoryReader_Dev& operator=(const DirectoryReader_Dev& other);
+ void swap(DirectoryReader_Dev& other);
+
+ // See PPB_DirectoryReader::GetNextEntry.
+ int32_t GetNextEntry(DirectoryEntry_Dev* entry,
+ const CompletionCallback& cc);
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_DIRECTORY_READER_H_