OLD | NEW |
1 // Copyright (c) 2010 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 WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> |
9 | 10 |
10 #include "base/file_util_proxy.h" | 11 #include "base/file_util_proxy.h" |
11 #include "ppapi/shared_impl/resource.h" | 12 #include "ppapi/shared_impl/resource.h" |
12 #include "ppapi/thunk/ppb_directory_reader_api.h" | 13 #include "ppapi/thunk/ppb_directory_reader_api.h" |
13 | 14 |
14 struct PP_CompletionCallback; | 15 struct PP_CompletionCallback; |
15 struct PP_DirectoryEntry_Dev; | 16 struct PP_DirectoryEntry_Dev; |
16 struct PPB_DirectoryReader_Dev; | |
17 | 17 |
18 namespace webkit { | 18 namespace webkit { |
19 namespace ppapi { | 19 namespace ppapi { |
20 | 20 |
21 class PPB_FileRef_Impl; | 21 class PPB_FileRef_Impl; |
22 | 22 |
23 class PPB_DirectoryReader_Impl | 23 class PPB_DirectoryReader_Impl |
24 : public ::ppapi::Resource, | 24 : public ::ppapi::Resource, |
25 public ::ppapi::thunk::PPB_DirectoryReader_API { | 25 public ::ppapi::thunk::PPB_DirectoryReader_API { |
26 public: | 26 public: |
(...skipping 19 matching lines...) Expand all Loading... |
46 scoped_refptr<PPB_FileRef_Impl> directory_ref_; | 46 scoped_refptr<PPB_FileRef_Impl> directory_ref_; |
47 std::queue<base::FileUtilProxy::Entry> entries_; | 47 std::queue<base::FileUtilProxy::Entry> entries_; |
48 bool has_more_; | 48 bool has_more_; |
49 PP_DirectoryEntry_Dev* entry_; | 49 PP_DirectoryEntry_Dev* entry_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace ppapi | 52 } // namespace ppapi |
53 } // namespace webkit | 53 } // namespace webkit |
54 | 54 |
55 #endif // WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ | 55 #endif // WEBKIT_PLUGINS_PPAPI_PPB_DIRECTORY_READER_IMPL_H_ |
OLD | NEW |