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

Side by Side Diff: base/files/file_util_proxy.cc

Issue 100453006: Move Touch to base namespace, remove SetLastModifiedTime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 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 #include "base/files/file_util_proxy.h" 5 #include "base/files/file_util_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // static 350 // static
351 bool FileUtilProxy::Touch( 351 bool FileUtilProxy::Touch(
352 TaskRunner* task_runner, 352 TaskRunner* task_runner,
353 const FilePath& file_path, 353 const FilePath& file_path,
354 const Time& last_access_time, 354 const Time& last_access_time,
355 const Time& last_modified_time, 355 const Time& last_modified_time,
356 const StatusCallback& callback) { 356 const StatusCallback& callback) {
357 return base::PostTaskAndReplyWithResult( 357 return base::PostTaskAndReplyWithResult(
358 task_runner, 358 task_runner,
359 FROM_HERE, 359 FROM_HERE,
360 Bind(&file_util::TouchFile, file_path, 360 Bind(&base::TouchFile, file_path, last_access_time, last_modified_time),
viettrungluu 2013/12/04 21:09:23 nit: you're already in the base namespace (ditto f
brettw 2013/12/04 21:38:17 I'll get around to removing base from this file. I
361 last_access_time, last_modified_time),
362 Bind(&CallWithTranslatedParameter, callback)); 361 Bind(&CallWithTranslatedParameter, callback));
363 } 362 }
364 363
365 // static 364 // static
366 bool FileUtilProxy::Truncate( 365 bool FileUtilProxy::Truncate(
367 TaskRunner* task_runner, 366 TaskRunner* task_runner,
368 PlatformFile file, 367 PlatformFile file,
369 int64 length, 368 int64 length,
370 const StatusCallback& callback) { 369 const StatusCallback& callback) {
371 return base::PostTaskAndReplyWithResult( 370 return base::PostTaskAndReplyWithResult(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 bool FileUtilProxy::RelayClose( 404 bool FileUtilProxy::RelayClose(
406 TaskRunner* task_runner, 405 TaskRunner* task_runner,
407 const CloseTask& close_task, 406 const CloseTask& close_task,
408 PlatformFile file_handle, 407 PlatformFile file_handle,
409 const StatusCallback& callback) { 408 const StatusCallback& callback) {
410 return base::PostTaskAndReplyWithResult( 409 return base::PostTaskAndReplyWithResult(
411 task_runner, FROM_HERE, Bind(close_task, file_handle), callback); 410 task_runner, FROM_HERE, Bind(close_task, file_handle), callback);
412 } 411 }
413 412
414 } // namespace base 413 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698