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

Side by Side Diff: base/files/file_proxy.h

Issue 2479683004: base: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing forward declaration Created 4 years, 1 month 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 | « base/debug/activity_tracker.h ('k') | base/files/important_file_writer.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 BASE_FILES_FILE_PROXY_H_ 5 #ifndef BASE_FILES_FILE_PROXY_H_
6 #define BASE_FILES_FILE_PROXY_H_ 6 #define BASE_FILES_FILE_PROXY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/files/file.h" 12 #include "base/files/file.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 17
18 namespace tracked_objects {
19 class Location;
20 };
21
22 namespace base { 18 namespace base {
23 19
24 class TaskRunner; 20 class TaskRunner;
25 class Time; 21 class Time;
26 22
27 // This class provides asynchronous access to a File. All methods follow the 23 // This class provides asynchronous access to a File. All methods follow the
28 // same rules of the equivalent File method, as they are implemented by bouncing 24 // same rules of the equivalent File method, as they are implemented by bouncing
29 // the operation to File using a TaskRunner. 25 // the operation to File using a TaskRunner.
30 // 26 //
31 // This class performs automatic proxying to close the underlying file at 27 // This class performs automatic proxying to close the underlying file at
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 TaskRunner* task_runner() { return task_runner_.get(); } 136 TaskRunner* task_runner() { return task_runner_.get(); }
141 137
142 scoped_refptr<TaskRunner> task_runner_; 138 scoped_refptr<TaskRunner> task_runner_;
143 File file_; 139 File file_;
144 DISALLOW_COPY_AND_ASSIGN(FileProxy); 140 DISALLOW_COPY_AND_ASSIGN(FileProxy);
145 }; 141 };
146 142
147 } // namespace base 143 } // namespace base
148 144
149 #endif // BASE_FILES_FILE_PROXY_H_ 145 #endif // BASE_FILES_FILE_PROXY_H_
OLDNEW
« no previous file with comments | « base/debug/activity_tracker.h ('k') | base/files/important_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698