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

Side by Side Diff: net/base/directory_lister.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 NET_BASE_DIRECTORY_LISTER_H_ 5 #ifndef NET_BASE_DIRECTORY_LISTER_H_
6 #define NET_BASE_DIRECTORY_LISTER_H_ 6 #define NET_BASE_DIRECTORY_LISTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/message_loop_proxy.h" 13 #include "base/message_loop_proxy.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "net/base/net_api.h" 15 #include "net/base/net_export.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 // 19 //
20 // This class provides an API for listing the contents of a directory on the 20 // This class provides an API for listing the contents of a directory on the
21 // filesystem asynchronously. It spawns a background thread, and enumerates 21 // filesystem asynchronously. It spawns a background thread, and enumerates
22 // the specified directory on that thread. It marshalls WIN32_FIND_DATA 22 // the specified directory on that thread. It marshalls WIN32_FIND_DATA
23 // structs over to the main application thread. The consumer of this class 23 // structs over to the main application thread. The consumer of this class
24 // is insulated from any of the multi-threading details. 24 // is insulated from any of the multi-threading details.
25 // 25 //
26 class NET_API DirectoryLister { 26 class NET_EXPORT DirectoryLister {
27 public: 27 public:
28 // Represents one file found. 28 // Represents one file found.
29 struct DirectoryListerData { 29 struct DirectoryListerData {
30 file_util::FileEnumerator::FindInfo info; 30 file_util::FileEnumerator::FindInfo info;
31 FilePath path; 31 FilePath path;
32 }; 32 };
33 33
34 // Implement this class to receive directory entries. 34 // Implement this class to receive directory entries.
35 class DirectoryListerDelegate { 35 class DirectoryListerDelegate {
36 public: 36 public:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 const scoped_refptr<Core> core_; 115 const scoped_refptr<Core> core_;
116 DirectoryListerDelegate* const delegate_; 116 DirectoryListerDelegate* const delegate_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(DirectoryLister); 118 DISALLOW_COPY_AND_ASSIGN(DirectoryLister);
119 }; 119 };
120 120
121 } // namespace net 121 } // namespace net
122 122
123 #endif // NET_BASE_DIRECTORY_LISTER_H_ 123 #endif // NET_BASE_DIRECTORY_LISTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698