| 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_download_observer.h" | 5 #include "chrome/browser/chromeos/gdata/drive_download_observer.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
| 13 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 13 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 14 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" | 14 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 15 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 16 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 16 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 17 #include "chrome/browser/chromeos/gdata/drive_system_service.h" | 17 #include "chrome/browser/chromeos/gdata/drive_system_service.h" |
| 18 #include "chrome/browser/chromeos/gdata/gdata_util.h" | |
| 19 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | |
| 20 #include "chrome/browser/download/download_completion_blocker.h" | 18 #include "chrome/browser/download/download_completion_blocker.h" |
| 19 #include "chrome/browser/google_apis/gdata_util.h" |
| 20 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 21 #include "chrome/browser/profiles/profile_manager.h" | 21 #include "chrome/browser/profiles/profile_manager.h" |
| 22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 23 | 23 |
| 24 using content::BrowserThread; | 24 using content::BrowserThread; |
| 25 using content::DownloadManager; | 25 using content::DownloadManager; |
| 26 using content::DownloadItem; | 26 using content::DownloadItem; |
| 27 | 27 |
| 28 namespace gdata { | 28 namespace gdata { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 "], file_path=[" + file_path.value() + | 703 "], file_path=[" + file_path.value() + |
| 704 "], content_type=[" + content_type + | 704 "], content_type=[" + content_type + |
| 705 "], content_length=[" + base::UintToString(content_length) + | 705 "], content_length=[" + base::UintToString(content_length) + |
| 706 "], upload_location=[" + upload_location.possibly_invalid_spec() + | 706 "], upload_location=[" + upload_location.possibly_invalid_spec() + |
| 707 "], drive_path=[" + drive_path.value() + | 707 "], drive_path=[" + drive_path.value() + |
| 708 "], all_bytes_present=[" + (all_bytes_present ? "true" : "false") + | 708 "], all_bytes_present=[" + (all_bytes_present ? "true" : "false") + |
| 709 "]"; | 709 "]"; |
| 710 } | 710 } |
| 711 | 711 |
| 712 } // namespace gdata | 712 } // namespace gdata |
| OLD | NEW |