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