| 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_uploader.h" | 5 #include "chrome/browser/chromeos/gdata/drive_uploader.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" | 12 #include "chrome/browser/chromeos/gdata/drive_service_interface.h" |
| 13 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 13 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/download_item.h" | 15 #include "content/public/browser/download_item.h" |
| 16 #include "net/base/file_stream.h" | 16 #include "net/base/file_stream.h" |
| 17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
| 18 | 18 |
| 19 using content::BrowserThread; | 19 using content::BrowserThread; |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Google Documents List API requires uploading in chunks of 512kB. | 23 // Google Documents List API requires uploading in chunks of 512kB. |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 return "title=[" + title + | 544 return "title=[" + title + |
| 545 "], file_path=[" + file_path.AsUTF8Unsafe() + | 545 "], file_path=[" + file_path.AsUTF8Unsafe() + |
| 546 "], content_type=[" + content_type + | 546 "], content_type=[" + content_type + |
| 547 "], content_length=[" + base::UintToString(content_length) + | 547 "], content_length=[" + base::UintToString(content_length) + |
| 548 "], file_size=[" + base::UintToString(file_size) + | 548 "], file_size=[" + base::UintToString(file_size) + |
| 549 "], drive_path=[" + drive_path.AsUTF8Unsafe() + | 549 "], drive_path=[" + drive_path.AsUTF8Unsafe() + |
| 550 "]"; | 550 "]"; |
| 551 } | 551 } |
| 552 | 552 |
| 553 } // namespace gdata | 553 } // namespace gdata |
| OLD | NEW |