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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 RequestContext( | 64 RequestContext( |
65 net::URLRequestContext* baseline_context, | 65 net::URLRequestContext* baseline_context, |
66 const scoped_refptr<base::SingleThreadTaskRunner>& | 66 const scoped_refptr<base::SingleThreadTaskRunner>& |
67 network_task_runner, | 67 network_task_runner, |
68 const std::string& user_agent); | 68 const std::string& user_agent); |
69 | 69 |
70 // The destructor MUST be called on the IO thread. | 70 // The destructor MUST be called on the IO thread. |
71 ~RequestContext() override; | 71 ~RequestContext() override; |
72 | 72 |
73 private: | 73 private: |
74 net::URLRequestContext* const baseline_context_; | |
75 const scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 74 const scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
76 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; | 75 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings_; |
77 scoped_ptr<net::URLRequestJobFactory> job_factory_; | 76 scoped_ptr<net::URLRequestJobFactory> job_factory_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(RequestContext); | 78 DISALLOW_COPY_AND_ASSIGN(RequestContext); |
80 }; | 79 }; |
81 | 80 |
82 // Lazy-getter for RequestContext objects. | 81 // Lazy-getter for RequestContext objects. |
83 class SYNC_EXPORT_PRIVATE RequestContextGetter | 82 class SYNC_EXPORT_PRIVATE RequestContextGetter |
84 : public net::URLRequestContextGetter { | 83 : public net::URLRequestContextGetter { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 NetworkTimeUpdateCallback network_time_update_callback_; | 274 NetworkTimeUpdateCallback network_time_update_callback_; |
276 | 275 |
277 CancelationSignal* const cancelation_signal_; | 276 CancelationSignal* const cancelation_signal_; |
278 | 277 |
279 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 278 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
280 }; | 279 }; |
281 | 280 |
282 } // namespace syncer | 281 } // namespace syncer |
283 | 282 |
284 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ | 283 #endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_H_ |
OLD | NEW |