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/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 13 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
| 14 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
14 #include "chrome/common/net/gaia/gaia_urls.h" | 15 #include "chrome/common/net/gaia/gaia_urls.h" |
15 #include "chrome/common/net/gaia/google_service_auth_error.h" | 16 #include "chrome/common/net/gaia/google_service_auth_error.h" |
16 #include "chrome/common/net/url_util.h" | 17 #include "chrome/common/net/url_util.h" |
17 #include "net/base/escape.h" | 18 #include "net/base/escape.h" |
18 #include "net/http/http_util.h" | 19 #include "net/http/http_util.h" |
19 #include "net/url_request/url_fetcher.h" | 20 #include "net/url_request/url_fetcher.h" |
20 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
21 #include "third_party/libxml/chromium/libxml_utils.h" | 22 #include "third_party/libxml/chromium/libxml_utils.h" |
22 | 23 |
23 using content::BrowserThread; | 24 using content::BrowserThread; |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 return true; | 1226 return true; |
1226 } | 1227 } |
1227 | 1228 |
1228 void ResumeUploadOperation::OnURLFetchUploadProgress( | 1229 void ResumeUploadOperation::OnURLFetchUploadProgress( |
1229 const net::URLFetcher* source, int64 current, int64 total) { | 1230 const net::URLFetcher* source, int64 current, int64 total) { |
1230 // Adjust the progress values according to the range currently uploaded. | 1231 // Adjust the progress values according to the range currently uploaded. |
1231 NotifyProgress(params_.start_range + current, params_.content_length); | 1232 NotifyProgress(params_.start_range + current, params_.content_length); |
1232 } | 1233 } |
1233 | 1234 |
1234 } // namespace gdata | 1235 } // namespace gdata |
OLD | NEW |