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

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

Issue 1135793006: [net/base] Forward declaration of classes instead of including header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments Created 5 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 | « no previous file | net/base/directory_lister.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
11 #include "base/files/file_enumerator.h" 11 #include "base/files/file_enumerator.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/message_loop/message_loop_proxy.h"
17 #include "net/base/net_export.h" 16 #include "net/base/net_export.h"
18 17
18 namespace base {
19 class MessageLoopProxy;
20 }
21
19 namespace net { 22 namespace net {
20 23
21 // This class provides an API for asynchronously listing the contents of a 24 // This class provides an API for asynchronously listing the contents of a
22 // directory on the filesystem. It runs a task on a background thread, and 25 // directory on the filesystem. It runs a task on a background thread, and
23 // enumerates all files in the specified directory on that thread. Destroying 26 // enumerates all files in the specified directory on that thread. Destroying
24 // the lister cancels the list operation. The DirectoryLister must only be 27 // the lister cancels the list operation. The DirectoryLister must only be
25 // used on a thread with a MessageLoop. 28 // used on a thread with a MessageLoop.
26 class NET_EXPORT DirectoryLister { 29 class NET_EXPORT DirectoryLister {
27 public: 30 public:
28 // Represents one file found. 31 // Represents one file found.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 130
128 scoped_refptr<Core> core_; 131 scoped_refptr<Core> core_;
129 DirectoryListerDelegate* const delegate_; 132 DirectoryListerDelegate* const delegate_;
130 133
131 DISALLOW_COPY_AND_ASSIGN(DirectoryLister); 134 DISALLOW_COPY_AND_ASSIGN(DirectoryLister);
132 }; 135 };
133 136
134 } // namespace net 137 } // namespace net
135 138
136 #endif // NET_BASE_DIRECTORY_LISTER_H_ 139 #endif // NET_BASE_DIRECTORY_LISTER_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/directory_lister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698