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

Side by Side Diff: base/file_util_proxy.h

Issue 11946014: Cleanup: Deprecate FileUtilProxy::RelayFileTask (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | base/file_util_proxy.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 BASE_FILE_UTIL_PROXY_H_ 5 #ifndef BASE_FILE_UTIL_PROXY_H_
6 #define BASE_FILE_UTIL_PROXY_H_ 6 #define BASE_FILE_UTIL_PROXY_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const FilePath& file_path, 89 const FilePath& file_path,
90 const GetFileInfoCallback& callback); 90 const GetFileInfoCallback& callback);
91 91
92 static bool GetFileInfoFromPlatformFile( 92 static bool GetFileInfoFromPlatformFile(
93 TaskRunner* task_runner, 93 TaskRunner* task_runner,
94 PlatformFile file, 94 PlatformFile file,
95 const GetFileInfoCallback& callback); 95 const GetFileInfoCallback& callback);
96 96
97 // Deletes a file or a directory. 97 // Deletes a file or a directory.
98 // It is an error to delete a non-empty directory with recursive=false. 98 // It is an error to delete a non-empty directory with recursive=false.
99 static bool Delete(TaskRunner* task_runner, 99 static bool Delete(TaskRunner* task_runner,
awong 2013/01/16 18:02:37 What does a "false" return mean here? Looking at t
100 const FilePath& file_path, 100 const FilePath& file_path,
101 bool recursive, 101 bool recursive,
102 const StatusCallback& callback); 102 const StatusCallback& callback);
103 103
104 // Deletes a directory and all of its contents. 104 // Deletes a directory and all of its contents.
105 static bool RecursiveDelete( 105 static bool RecursiveDelete(
106 TaskRunner* task_runner, 106 TaskRunner* task_runner,
107 const FilePath& file_path, 107 const FilePath& file_path,
108 const StatusCallback& callback); 108 const StatusCallback& callback);
109 109
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 int64 length, 162 int64 length,
163 const StatusCallback& callback); 163 const StatusCallback& callback);
164 164
165 // Flushes a file. The callback can be null. 165 // Flushes a file. The callback can be null.
166 static bool Flush( 166 static bool Flush(
167 TaskRunner* task_runner, 167 TaskRunner* task_runner,
168 PlatformFile file, 168 PlatformFile file,
169 const StatusCallback& callback); 169 const StatusCallback& callback);
170 170
171 // Relay helpers. 171 // Relay helpers.
172 static bool RelayFileTask(
173 TaskRunner* task_runner,
174 const tracked_objects::Location& from_here,
175 const FileTask& task,
176 const StatusCallback& callback);
177
178 static bool RelayCreateOrOpen( 172 static bool RelayCreateOrOpen(
179 TaskRunner* task_runner, 173 TaskRunner* task_runner,
180 const CreateOrOpenTask& open_task, 174 const CreateOrOpenTask& open_task,
181 const CloseTask& close_task, 175 const CloseTask& close_task,
182 const CreateOrOpenCallback& callback); 176 const CreateOrOpenCallback& callback);
183 177
184 static bool RelayClose( 178 static bool RelayClose(
185 TaskRunner* task_runner, 179 TaskRunner* task_runner,
186 const CloseTask& close_task, 180 const CloseTask& close_task,
187 PlatformFile, 181 PlatformFile,
188 const StatusCallback& callback); 182 const StatusCallback& callback);
189 183
190 private: 184 private:
191 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); 185 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy);
192 }; 186 };
193 187
194 } // namespace base 188 } // namespace base
195 189
196 #endif // BASE_FILE_UTIL_PROXY_H_ 190 #endif // BASE_FILE_UTIL_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698