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/pref_change_registrar.h" |
13 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
14 #include "base/prefs/public/pref_change_registrar.h" | |
15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
16 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 18 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
19 #include "chrome/browser/chromeos/drive/drive.pb.h" | 19 #include "chrome/browser/chromeos/drive/drive.pb.h" |
20 #include "chrome/browser/chromeos/drive/drive_cache.h" | 20 #include "chrome/browser/chromeos/drive/drive_cache.h" |
21 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" | 21 #include "chrome/browser/chromeos/drive/drive_file_system_observer.h" |
22 #include "chrome/browser/chromeos/drive/drive_file_system_util.h" | 22 #include "chrome/browser/chromeos/drive/drive_file_system_util.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/resource_entry_conversion.h" | 24 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 return; | 1698 return; |
1699 } | 1699 } |
1700 | 1700 |
1701 PlatformFileInfoProto entry_file_info; | 1701 PlatformFileInfoProto entry_file_info; |
1702 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); | 1702 util::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); |
1703 *entry_proto->mutable_file_info() = entry_file_info; | 1703 *entry_proto->mutable_file_info() = entry_file_info; |
1704 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); | 1704 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); |
1705 } | 1705 } |
1706 | 1706 |
1707 } // namespace drive | 1707 } // namespace drive |
OLD | NEW |