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/gdata_operations.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/libxml_utils.h" |
9 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
10 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
11 #include "base/values.h" | 12 #include "base/values.h" |
12 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 13 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
13 #include "chrome/browser/net/browser_url_util.h" | 14 #include "chrome/browser/net/browser_url_util.h" |
14 #include "chrome/common/libxml_utils.h" | |
15 #include "chrome/common/net/gaia/google_service_auth_error.h" | 15 #include "chrome/common/net/gaia/google_service_auth_error.h" |
16 #include "chrome/common/net/gaia/gaia_urls.h" | 16 #include "chrome/common/net/gaia/gaia_urls.h" |
17 #include "net/base/escape.h" | 17 #include "net/base/escape.h" |
18 #include "net/http/http_util.h" | 18 #include "net/http/http_util.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 using content::URLFetcher; | 21 using content::URLFetcher; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 return true; | 1030 return true; |
1031 } | 1031 } |
1032 | 1032 |
1033 void ResumeUploadOperation::OnURLFetchUploadProgress( | 1033 void ResumeUploadOperation::OnURLFetchUploadProgress( |
1034 const content::URLFetcher* source, int64 current, int64 total) { | 1034 const content::URLFetcher* source, int64 current, int64 total) { |
1035 // Adjust the progress values according to the range currently uploaded. | 1035 // Adjust the progress values according to the range currently uploaded. |
1036 NotifyProgress(params_.start_range + current, params_.content_length); | 1036 NotifyProgress(params_.start_range + current, params_.content_length); |
1037 } | 1037 } |
1038 | 1038 |
1039 } // namespace gdata | 1039 } // namespace gdata |
OLD | NEW |