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_ENGINE_NET_HTTP_BRIDGE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_NET_HTTP_BRIDGE_H_ |
6 #define COMPONENTS_SYNC_ENGINE_NET_HTTP_BRIDGE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_NET_HTTP_BRIDGE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "components/sync/engine/net/network_time_update_callback.h" | 24 #include "components/sync/engine/net/network_time_update_callback.h" |
25 #include "net/url_request/url_fetcher_delegate.h" | 25 #include "net/url_request/url_fetcher_delegate.h" |
26 #include "net/url_request/url_request_context.h" | 26 #include "net/url_request/url_request_context.h" |
27 #include "net/url_request/url_request_context_getter.h" | 27 #include "net/url_request/url_request_context_getter.h" |
28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
29 | 29 |
30 class HttpBridgeTest; | 30 class HttpBridgeTest; |
31 | 31 |
32 namespace net { | 32 namespace net { |
33 class HttpResponseHeaders; | 33 class HttpResponseHeaders; |
34 class HttpUserAgentSettings; | |
35 class URLFetcher; | 34 class URLFetcher; |
36 class URLRequestJobFactory; | |
37 } | 35 } |
38 | 36 |
39 namespace syncer { | 37 namespace syncer { |
40 | 38 |
41 class CancelationSignal; | 39 class CancelationSignal; |
42 extern const base::Feature kSyncClientToServerCompression; | 40 extern const base::Feature kSyncClientToServerCompression; |
43 | 41 |
44 // A bridge between the syncer and Chromium HTTP layers. | 42 // A bridge between the syncer and Chromium HTTP layers. |
45 // Provides a way for the sync backend to use Chromium directly for HTTP | 43 // Provides a way for the sync backend to use Chromium directly for HTTP |
46 // requests rather than depending on a third party provider (e.g libcurl). | 44 // requests rather than depending on a third party provider (e.g libcurl). |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // 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 |
227 // service by data_use_measurement component. | 225 // service by data_use_measurement component. |
228 BindToTrackerCallback bind_to_tracker_callback_; | 226 BindToTrackerCallback bind_to_tracker_callback_; |
229 | 227 |
230 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 228 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
231 }; | 229 }; |
232 | 230 |
233 } // namespace syncer | 231 } // namespace syncer |
234 | 232 |
235 #endif // COMPONENTS_SYNC_ENGINE_NET_HTTP_BRIDGE_H_ | 233 #endif // COMPONENTS_SYNC_ENGINE_NET_HTTP_BRIDGE_H_ |
OLD | NEW |