summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/dev/directory_reader_dev.h
blob: 92f2a235127466d0350df4a1b343ee8e949be42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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);

  // See PPB_DirectoryReader::GetNextEntry.
  int32_t GetNextEntry(DirectoryEntry_Dev* entry,
                       const CompletionCallback& cc);
};

}  // namespace pp

#endif  // PPAPI_CPP_DIRECTORY_READER_H_