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

Side by Side Diff: webkit/blob/shareable_file_reference.cc

Issue 12035111: Move file_util_proxy to base/files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « webkit/blob/local_file_stream_reader.cc ('k') | webkit/chromeos/fileapi/file_util_async.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 (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 "webkit/blob/shareable_file_reference.h" 5 #include "webkit/blob/shareable_file_reference.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/file_util_proxy.h" 10 #include "base/files/file_util_proxy.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/task_runner.h" 12 #include "base/task_runner.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 14
15 namespace webkit_blob { 15 namespace webkit_blob {
16 16
17 namespace { 17 namespace {
18 18
19 // A shareable file map with enforcement of thread checker. 19 // A shareable file map with enforcement of thread checker.
20 // This map may get deleted on a different thread in AtExitManager at the 20 // This map may get deleted on a different thread in AtExitManager at the
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 for (size_t i = 0; i < final_release_callbacks_.size(); i++) 116 for (size_t i = 0; i < final_release_callbacks_.size(); i++)
117 final_release_callbacks_[i].Run(path_); 117 final_release_callbacks_[i].Run(path_);
118 118
119 if (final_release_policy_ == DELETE_ON_FINAL_RELEASE) { 119 if (final_release_policy_ == DELETE_ON_FINAL_RELEASE) {
120 base::FileUtilProxy::Delete(file_task_runner_, path_, false /* recursive */, 120 base::FileUtilProxy::Delete(file_task_runner_, path_, false /* recursive */,
121 base::FileUtilProxy::StatusCallback()); 121 base::FileUtilProxy::StatusCallback());
122 } 122 }
123 } 123 }
124 124
125 } // namespace webkit_blob 125 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/blob/local_file_stream_reader.cc ('k') | webkit/chromeos/fileapi/file_util_async.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698