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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "base/bit_cast.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
14 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
15 #include "base/metrics/sparse_histogram.h" | 16 #include "base/metrics/sparse_histogram.h" |
16 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
19 #include "net/base/load_flags.h" | 20 #include "net/base/load_flags.h" |
20 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
21 #include "net/http/http_cache.h" | 22 #include "net/http/http_cache.h" |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 int64_t sane_time_ms = 0; | 547 int64_t sane_time_ms = 0; |
547 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { | 548 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { |
548 network_time_update_callback_.Run( | 549 network_time_update_callback_.Run( |
549 base::Time::FromJsTime(sane_time_ms), | 550 base::Time::FromJsTime(sane_time_ms), |
550 base::TimeDelta::FromMilliseconds(1), | 551 base::TimeDelta::FromMilliseconds(1), |
551 fetch_state_.end_time - fetch_state_.start_time); | 552 fetch_state_.end_time - fetch_state_.start_time); |
552 } | 553 } |
553 } | 554 } |
554 | 555 |
555 } // namespace syncer | 556 } // namespace syncer |
OLD | NEW |