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" | |
9 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
10 #include "net/base/load_flags.h" | 9 #include "net/base/load_flags.h" |
11 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
12 #include "net/cookies/cookie_monster.h" | 11 #include "net/cookies/cookie_monster.h" |
13 #include "net/http/http_cache.h" | 12 #include "net/http/http_cache.h" |
14 #include "net/http/http_network_layer.h" | 13 #include "net/http/http_network_layer.h" |
15 #include "net/http/http_response_headers.h" | 14 #include "net/http/http_response_headers.h" |
16 #include "net/url_request/static_http_user_agent_settings.h" | 15 #include "net/url_request/static_http_user_agent_settings.h" |
17 #include "net/url_request/url_fetcher.h" | 16 #include "net/url_request/url_fetcher.h" |
18 #include "net/url_request/url_request_context.h" | 17 #include "net/url_request/url_request_context.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 int64 sane_time_ms = 0; | 395 int64 sane_time_ms = 0; |
397 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { | 396 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { |
398 network_time_update_callback_.Run( | 397 network_time_update_callback_.Run( |
399 base::Time::FromJsTime(sane_time_ms), | 398 base::Time::FromJsTime(sane_time_ms), |
400 base::TimeDelta::FromMilliseconds(1), | 399 base::TimeDelta::FromMilliseconds(1), |
401 fetch_state_.end_time - fetch_state_.start_time); | 400 fetch_state_.end_time - fetch_state_.start_time); |
402 } | 401 } |
403 } | 402 } |
404 | 403 |
405 } // namespace syncer | 404 } // namespace syncer |
OLD | NEW |