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.h" | 7 #include "base/message_loop.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/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" | 13 #include "net/dns/host_resolver.h" |
14 #include "net/http/http_cache.h" | 14 #include "net/http/http_cache.h" |
15 #include "net/http/http_network_layer.h" | 15 #include "net/http/http_network_layer.h" |
16 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
17 #include "net/proxy/proxy_service.h" | 17 #include "net/proxy/proxy_service.h" |
18 #include "net/url_request/static_http_user_agent_settings.h" | 18 #include "net/url_request/static_http_user_agent_settings.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 int64 sane_time_ms = 0; | 338 int64 sane_time_ms = 0; |
339 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { | 339 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { |
340 network_time_update_callback_.Run( | 340 network_time_update_callback_.Run( |
341 base::Time::FromJsTime(sane_time_ms), | 341 base::Time::FromJsTime(sane_time_ms), |
342 base::TimeDelta::FromMilliseconds(1), | 342 base::TimeDelta::FromMilliseconds(1), |
343 fetch_state_.end_time - fetch_state_.start_time); | 343 fetch_state_.end_time - fetch_state_.start_time); |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
347 } // namespace syncer | 347 } // namespace syncer |
OLD | NEW |