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/snapshot_manager.h" | 5 #include "chrome/browser/chromeos/file_manager/snapshot_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "base/threading/sequenced_worker_pool.h" |
9 #include "chrome/browser/chromeos/file_manager/app_id.h" | 10 #include "chrome/browser/chromeos/file_manager/app_id.h" |
10 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 11 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
13 #include "google_apis/drive/task_util.h" | 14 #include "google_apis/drive/task_util.h" |
14 #include "storage/browser/blob/shareable_file_reference.h" | 15 #include "storage/browser/blob/shareable_file_reference.h" |
15 #include "storage/browser/fileapi/file_system_context.h" | 16 #include "storage/browser/fileapi/file_system_context.h" |
16 #include "third_party/cros_system_api/constants/cryptohome.h" | 17 #include "third_party/cros_system_api/constants/cryptohome.h" |
17 | 18 |
18 namespace file_manager { | 19 namespace file_manager { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (result != base::File::FILE_OK) { | 206 if (result != base::File::FILE_OK) { |
206 callback.Run(base::FilePath()); | 207 callback.Run(base::FilePath()); |
207 return; | 208 return; |
208 } | 209 } |
209 | 210 |
210 file_refs_.push_back(FileReferenceWithSizeInfo(file_ref, file_info.size)); | 211 file_refs_.push_back(FileReferenceWithSizeInfo(file_ref, file_info.size)); |
211 callback.Run(platform_path); | 212 callback.Run(platform_path); |
212 } | 213 } |
213 | 214 |
214 } // namespace file_manager | 215 } // namespace file_manager |
OLD | NEW |