OLD | NEW |
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 "chrome/browser/chromeos/drive/drive_file_system.h" | 5 #include "chrome/browser/chromeos/drive/drive_file_system.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
| 13 #include "base/prefs/public/pref_change_registrar.h" |
13 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/values.h" | 16 #include "base/values.h" |
16 #include "chrome/browser/api/prefs/pref_change_registrar.h" | |
17 #include "chrome/browser/chromeos/drive/drive.pb.h" | 17 #include "chrome/browser/chromeos/drive/drive.pb.h" |
18 #include "chrome/browser/chromeos/drive/drive_feed_loader.h" | 18 #include "chrome/browser/chromeos/drive/drive_feed_loader.h" |
19 #include "chrome/browser/chromeos/drive/drive_feed_processor.h" | 19 #include "chrome/browser/chromeos/drive/drive_feed_processor.h" |
20 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" | 20 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" |
21 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 21 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" |
22 #include "chrome/browser/chromeos/drive/drive_files.h" | 22 #include "chrome/browser/chromeos/drive/drive_files.h" |
23 #include "chrome/browser/chromeos/drive/drive_scheduler.h" | 23 #include "chrome/browser/chromeos/drive/drive_scheduler.h" |
24 #include "chrome/browser/chromeos/drive/drive_uploader.h" | 24 #include "chrome/browser/chromeos/drive/drive_uploader.h" |
25 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" | 25 #include "chrome/browser/chromeos/drive/file_system/copy_operation.h" |
26 #include "chrome/browser/chromeos/drive/file_system/move_operation.h" | 26 #include "chrome/browser/chromeos/drive/file_system/move_operation.h" |
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 return; | 2531 return; |
2532 } | 2532 } |
2533 | 2533 |
2534 PlatformFileInfoProto entry_file_info; | 2534 PlatformFileInfoProto entry_file_info; |
2535 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); | 2535 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); |
2536 *entry_proto->mutable_file_info() = entry_file_info; | 2536 *entry_proto->mutable_file_info() = entry_file_info; |
2537 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); | 2537 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); |
2538 } | 2538 } |
2539 | 2539 |
2540 } // namespace drive | 2540 } // namespace drive |
OLD | NEW |