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 SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // Callback for updating network time. | 221 // Callback for updating network time. |
222 NetworkTimeUpdateCallback network_time_update_callback_; | 222 NetworkTimeUpdateCallback network_time_update_callback_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(HttpBridge); | 224 DISALLOW_COPY_AND_ASSIGN(HttpBridge); |
225 }; | 225 }; |
226 | 226 |
227 class SYNC_EXPORT HttpBridgeFactory : public HttpPostProviderFactory, | 227 class SYNC_EXPORT HttpBridgeFactory : public HttpPostProviderFactory, |
228 public CancelationObserver { | 228 public CancelationObserver { |
229 public: | 229 public: |
230 HttpBridgeFactory( | 230 HttpBridgeFactory( |
231 net::URLRequestContextGetter* baseline_context_getter, | 231 const scoped_refptr<net::URLRequestContextGetter>& |
| 232 baseline_context_getter, |
232 const NetworkTimeUpdateCallback& network_time_update_callback, | 233 const NetworkTimeUpdateCallback& network_time_update_callback, |
233 CancelationSignal* cancelation_signal); | 234 CancelationSignal* cancelation_signal); |
234 virtual ~HttpBridgeFactory(); | 235 virtual ~HttpBridgeFactory(); |
235 | 236 |
236 // HttpPostProviderFactory: | 237 // HttpPostProviderFactory: |
237 virtual void Init(const std::string& user_agent) OVERRIDE; | 238 virtual void Init(const std::string& user_agent) OVERRIDE; |
238 virtual HttpPostProviderInterface* Create() OVERRIDE; | 239 virtual HttpPostProviderInterface* Create() OVERRIDE; |
239 virtual void Destroy(HttpPostProviderInterface* http) OVERRIDE; | 240 virtual void Destroy(HttpPostProviderInterface* http) OVERRIDE; |
240 | 241 |
241 // CancelationObserver implementation: | 242 // CancelationObserver implementation: |
(...skipping 19 matching lines...) Expand all Loading... |
261 NetworkTimeUpdateCallback network_time_update_callback_; | 262 NetworkTimeUpdateCallback network_time_update_callback_; |
262 | 263 |
263 CancelationSignal* const cancelation_signal_; | 264 CancelationSignal* const cancelation_signal_; |
264 | 265 |
265 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 266 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
266 }; | 267 }; |
267 | 268 |
268 } // namespace syncer | 269 } // namespace syncer |
269 | 270 |
270 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ | 271 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ |
OLD | NEW |