OLD | NEW |
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 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 5 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/chromeos/drive/file_errors.h" | 10 #include "chrome/browser/chromeos/drive/file_errors.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const base::Callback<void(bool)>& callback) { | 124 const base::Callback<void(bool)>& callback) { |
125 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 125 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
126 | 126 |
127 // TODO(kinaba): support other types of volumes besides Drive. | 127 // TODO(kinaba): support other types of volumes besides Drive. |
128 drive::util::CheckDirectoryExists( | 128 drive::util::CheckDirectoryExists( |
129 profile, | 129 profile, |
130 path, | 130 path, |
131 base::Bind(&CheckDirectoryAfterDriveCheck, callback)); | 131 base::Bind(&CheckDirectoryAfterDriveCheck, callback)); |
132 } | 132 } |
133 | 133 |
134 void PrepareNonNativeLocalPathWritableFile( | 134 void PrepareNonNativeLocalPathFileForWritableApp( |
135 Profile* profile, | 135 Profile* profile, |
136 const base::FilePath& path, | 136 const base::FilePath& path, |
137 const base::Callback<void(bool)>& callback) { | 137 const base::Callback<void(bool)>& callback) { |
138 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 138 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
139 | 139 |
140 // TODO(kinaba): support other types of volumes besides Drive. | 140 // TODO(kinaba): support other types of volumes besides Drive. |
141 drive::util::PrepareWritableFileAndRun( | 141 drive::util::PrepareWritableFileAndRun( |
142 profile, | 142 profile, |
143 path, | 143 path, |
144 base::Bind(&CheckWritableAfterDriveCheck, callback)); | 144 base::Bind(&CheckWritableAfterDriveCheck, callback)); |
145 } | 145 } |
146 | 146 |
147 } // namespace util | 147 } // namespace util |
148 } // namespace file_manager | 148 } // namespace file_manager |
OLD | NEW |