| 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/gdata/drive_file_system.h" | 5 #include "chrome/browser/chromeos/gdata/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/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 14 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/api/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/api/prefs/pref_change_registrar.h" |
| 17 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 17 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 18 #include "chrome/browser/chromeos/gdata/drive_api_parser.h" | |
| 19 #include "chrome/browser/chromeos/gdata/drive_files.h" | 18 #include "chrome/browser/chromeos/gdata/drive_files.h" |
| 20 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 19 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 21 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" | 20 #include "chrome/browser/chromeos/gdata/drive_function_remove.h" |
| 22 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 21 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 23 #include "chrome/browser/chromeos/gdata/drive_uploader.h" | 22 #include "chrome/browser/chromeos/gdata/drive_uploader.h" |
| 24 #include "chrome/browser/chromeos/gdata/gdata_util.h" | |
| 25 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" | 23 #include "chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h" |
| 24 #include "chrome/browser/google_apis/drive_api_parser.h" |
| 25 #include "chrome/browser/google_apis/gdata_util.h" |
| 26 #include "chrome/browser/google_apis/task_util.h" | 26 #include "chrome/browser/google_apis/task_util.h" |
| 27 #include "chrome/browser/prefs/pref_service.h" | 27 #include "chrome/browser/prefs/pref_service.h" |
| 28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
| 29 #include "chrome/common/chrome_notification_types.h" | 29 #include "chrome/common/chrome_notification_types.h" |
| 30 #include "chrome/common/pref_names.h" | 30 #include "chrome/common/pref_names.h" |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "content/public/browser/notification_details.h" | 32 #include "content/public/browser/notification_details.h" |
| 33 #include "net/base/mime_util.h" | 33 #include "net/base/mime_util.h" |
| 34 | 34 |
| 35 using content::BrowserThread; | 35 using content::BrowserThread; |
| (...skipping 3187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3223 return; | 3223 return; |
| 3224 } | 3224 } |
| 3225 | 3225 |
| 3226 PlatformFileInfoProto entry_file_info; | 3226 PlatformFileInfoProto entry_file_info; |
| 3227 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); | 3227 DriveEntry::ConvertPlatformFileInfoToProto(*file_info, &entry_file_info); |
| 3228 *entry_proto->mutable_file_info() = entry_file_info; | 3228 *entry_proto->mutable_file_info() = entry_file_info; |
| 3229 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); | 3229 callback.Run(DRIVE_FILE_OK, entry_proto.Pass()); |
| 3230 } | 3230 } |
| 3231 | 3231 |
| 3232 } // namespace gdata | 3232 } // namespace gdata |
| OLD | NEW |