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 #include "sync/internal_api/public/http_bridge.h" | 5 #include "sync/internal_api/public/http_bridge.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "net/base/load_flags.h" | 10 #include "net/base/load_flags.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/cookies/cookie_monster.h" | 12 #include "net/cookies/cookie_monster.h" |
13 #include "net/dns/host_resolver.h" | |
14 #include "net/http/http_cache.h" | 13 #include "net/http/http_cache.h" |
15 #include "net/http/http_network_layer.h" | 14 #include "net/http/http_network_layer.h" |
16 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
17 #include "net/proxy/proxy_service.h" | |
18 #include "net/url_request/static_http_user_agent_settings.h" | 16 #include "net/url_request/static_http_user_agent_settings.h" |
19 #include "net/url_request/url_fetcher.h" | 17 #include "net/url_request/url_fetcher.h" |
20 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
21 #include "net/url_request/url_request_status.h" | 19 #include "net/url_request/url_request_status.h" |
22 #include "sync/internal_api/public/base/cancelation_signal.h" | 20 #include "sync/internal_api/public/base/cancelation_signal.h" |
23 | 21 |
24 namespace syncer { | 22 namespace syncer { |
25 | 23 |
26 HttpBridge::RequestContextGetter::RequestContextGetter( | 24 HttpBridge::RequestContextGetter::RequestContextGetter( |
27 net::URLRequestContextGetter* baseline_context_getter, | 25 net::URLRequestContextGetter* baseline_context_getter, |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 int64 sane_time_ms = 0; | 391 int64 sane_time_ms = 0; |
394 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { | 392 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { |
395 network_time_update_callback_.Run( | 393 network_time_update_callback_.Run( |
396 base::Time::FromJsTime(sane_time_ms), | 394 base::Time::FromJsTime(sane_time_ms), |
397 base::TimeDelta::FromMilliseconds(1), | 395 base::TimeDelta::FromMilliseconds(1), |
398 fetch_state_.end_time - fetch_state_.start_time); | 396 fetch_state_.end_time - fetch_state_.start_time); |
399 } | 397 } |
400 } | 398 } |
401 | 399 |
402 } // namespace syncer | 400 } // namespace syncer |
OLD | NEW |