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

Side by Side Diff: ppapi/proxy/directory_reader_resource.h

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ppapi/proxy/directory_reader_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_DIRECTORY_READER_RESOURCE_H_
6 #define PPAPI_PROXY_DIRECTORY_READER_RESOURCE_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h"
12 #include "ppapi/proxy/plugin_resource.h"
13 #include "ppapi/proxy/ppapi_proxy_export.h"
14 #include "ppapi/shared_impl/array_writer.h"
15 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
16 #include "ppapi/shared_impl/resource.h"
17 #include "ppapi/thunk/ppb_directory_reader_api.h"
18
19 namespace ppapi {
20
21 class TrackedCallback;
22
23 namespace proxy {
24
25 class PPAPI_PROXY_EXPORT DirectoryReaderResource
26 : public PluginResource,
27 public NON_EXPORTED_BASE(thunk::PPB_DirectoryReader_API) {
28 public:
29 DirectoryReaderResource(Connection connection,
30 PP_Instance instance,
31 PP_Resource directory_ref);
32 virtual ~DirectoryReaderResource();
33
34 // Resource overrides.
35 virtual thunk::PPB_DirectoryReader_API* AsPPB_DirectoryReader_API() OVERRIDE;
36
37 // PPB_DirectoryReader_API.
38 virtual int32_t ReadEntries(
39 const PP_ArrayOutput& output,
40 scoped_refptr<TrackedCallback> callback) OVERRIDE;
41
42 private:
43 void OnPluginMsgGetEntriesReply(
44 const PP_ArrayOutput& output,
45 const ResourceMessageReplyParams& params,
46 const std::vector<ppapi::PPB_FileRef_CreateInfo>& infos,
47 const std::vector<PP_FileType>& file_types);
48
49 scoped_refptr<Resource> directory_resource_;
50 scoped_refptr<TrackedCallback> callback_;
51
52 DISALLOW_COPY_AND_ASSIGN(DirectoryReaderResource);
53 };
54
55 } // namespace proxy
56 } // namespace ppapi
57
58 #endif // PPAPI_PROXY_DIRECTORY_READER_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/ppapi_sources.gypi ('k') | ppapi/proxy/directory_reader_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698