| 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/supports_user_data.h" | 11 #include "base/supports_user_data.h" |
| 12 #include "chrome/browser/chromeos/gdata/drive.pb.h" | |
| 13 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" | 12 #include "chrome/browser/chromeos/gdata/drive_file_system_interface.h" |
| 14 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" | 13 #include "chrome/browser/chromeos/gdata/drive_file_system_util.h" |
| 15 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 14 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 16 #include "chrome/browser/chromeos/gdata/drive_system_service.h" | 15 #include "chrome/browser/chromeos/gdata/drive_system_service.h" |
| 17 #include "chrome/browser/chromeos/gdata/drive_upload_file_info.h" | 16 #include "chrome/browser/chromeos/gdata/drive_upload_file_info.h" |
| 18 #include "chrome/browser/chromeos/gdata/drive_uploader.h" | 17 #include "chrome/browser/chromeos/gdata/drive_uploader.h" |
| 19 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 18 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
| 20 #include "chrome/browser/download/download_completion_blocker.h" | 19 #include "chrome/browser/download/download_completion_blocker.h" |
| 20 #include "chrome/browser/google_apis/drive.pb.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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 file_system_->AddUploadedFile(UPLOAD_NEW_FILE, | 669 file_system_->AddUploadedFile(UPLOAD_NEW_FILE, |
| 670 upload_data->virtual_dir_path(), | 670 upload_data->virtual_dir_path(), |
| 671 entry.Pass(), | 671 entry.Pass(), |
| 672 download->GetTargetFilePath(), | 672 download->GetTargetFilePath(), |
| 673 DriveCache::FILE_OPERATION_MOVE, | 673 DriveCache::FILE_OPERATION_MOVE, |
| 674 base::Bind(&base::DoNothing)); | 674 base::Bind(&base::DoNothing)); |
| 675 } | 675 } |
| 676 } | 676 } |
| 677 | 677 |
| 678 } // namespace gdata | 678 } // namespace gdata |
| OLD | NEW |