OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ |
6 #define COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ | 6 #define COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // string r(b->GetResponseContent(), b->GetResponseContentLength()). | 69 // string r(b->GetResponseContent(), b->GetResponseContentLength()). |
70 int GetResponseContentLength() const override; | 70 int GetResponseContentLength() const override; |
71 const char* GetResponseContent() const override; | 71 const char* GetResponseContent() const override; |
72 const std::string GetResponseHeaderValue( | 72 const std::string GetResponseHeaderValue( |
73 const std::string& name) const override; | 73 const std::string& name) const override; |
74 | 74 |
75 // net::URLFetcherDelegate implementation. | 75 // net::URLFetcherDelegate implementation. |
76 void OnURLFetchComplete(const net::URLFetcher* source) override; | 76 void OnURLFetchComplete(const net::URLFetcher* source) override; |
77 void OnURLFetchDownloadProgress(const net::URLFetcher* source, | 77 void OnURLFetchDownloadProgress(const net::URLFetcher* source, |
78 int64_t current, | 78 int64_t current, |
79 int64_t total) override; | 79 int64_t total, |
| 80 int64_t current_network_bytes) override; |
80 void OnURLFetchUploadProgress(const net::URLFetcher* source, | 81 void OnURLFetchUploadProgress(const net::URLFetcher* source, |
81 int64_t current, | 82 int64_t current, |
82 int64_t total) override; | 83 int64_t total) override; |
83 | 84 |
84 net::URLRequestContextGetter* GetRequestContextGetterForTest() const; | 85 net::URLRequestContextGetter* GetRequestContextGetterForTest() const; |
85 | 86 |
86 protected: | 87 protected: |
87 ~HttpBridge() override; | 88 ~HttpBridge() override; |
88 | 89 |
89 // Protected virtual so the unit test can override to shunt network requests. | 90 // Protected virtual so the unit test can override to shunt network requests. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // A callback to tag Sync request to be able to record data use of this | 224 // A callback to tag Sync request to be able to record data use of this |
224 // service by data_use_measurement component. | 225 // service by data_use_measurement component. |
225 BindToTrackerCallback bind_to_tracker_callback_; | 226 BindToTrackerCallback bind_to_tracker_callback_; |
226 | 227 |
227 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 228 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
228 }; | 229 }; |
229 | 230 |
230 } // namespace syncer | 231 } // namespace syncer |
231 | 232 |
232 #endif // COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ | 233 #endif // COMPONENTS_SYNC_CORE_HTTP_BRIDGE_H_ |
OLD | NEW |