Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(989)

Side by Side Diff: components/sync/core/http_bridge.cc

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/sync/core/http_bridge.h" 5 #include "components/sync/core/http_bridge.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h>
9 8
10 #include <vector> 9 #include <vector>
11 10
12 #include "base/bit_cast.h" 11 #include "base/bit_cast.h"
13 #include "base/location.h" 12 #include "base/location.h"
14 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
15 #include "base/metrics/sparse_histogram.h" 14 #include "base/metrics/sparse_histogram.h"
16 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
17 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
19 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
20 #include "components/sync/base/cancelation_signal.h" 19 #include "components/sync/base/cancelation_signal.h"
21 #include "net/base/load_flags.h" 20 #include "net/base/load_flags.h"
22 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
23 #include "net/http/http_cache.h" 22 #include "net/http/http_cache.h"
24 #include "net/http/http_network_layer.h" 23 #include "net/http/http_network_layer.h"
25 #include "net/http/http_request_headers.h" 24 #include "net/http/http_request_headers.h"
26 #include "net/http/http_response_headers.h" 25 #include "net/http/http_response_headers.h"
27 #include "net/url_request/static_http_user_agent_settings.h" 26 #include "net/url_request/static_http_user_agent_settings.h"
28 #include "net/url_request/url_fetcher.h" 27 #include "net/url_request/url_fetcher.h"
29 #include "net/url_request/url_request_context.h"
30 #include "net/url_request/url_request_job_factory_impl.h" 28 #include "net/url_request/url_request_job_factory_impl.h"
31 #include "net/url_request/url_request_status.h" 29 #include "net/url_request/url_request_status.h"
32 30
33 namespace syncer { 31 namespace syncer {
34 32
35 namespace { 33 namespace {
36 34
37 // It's possible for an http request to be silently stalled. We set a time 35 // It's possible for an http request to be silently stalled. We set a time
38 // limit for all http requests, beyond which the request is cancelled and 36 // limit for all http requests, beyond which the request is cancelled and
39 // treated as a transient failure. 37 // treated as a transient failure.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 int64_t sane_time_ms = 0; 435 int64_t sane_time_ms = 0;
438 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { 436 if (base::StringToInt64(sane_time_str, &sane_time_ms)) {
439 network_time_update_callback_.Run( 437 network_time_update_callback_.Run(
440 base::Time::FromJsTime(sane_time_ms), 438 base::Time::FromJsTime(sane_time_ms),
441 base::TimeDelta::FromMilliseconds(1), 439 base::TimeDelta::FromMilliseconds(1),
442 fetch_state_.end_time - fetch_state_.start_time); 440 fetch_state_.end_time - fetch_state_.start_time);
443 } 441 }
444 } 442 }
445 443
446 } // namespace syncer 444 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core/delete_journal.cc ('k') | components/sync/core/http_bridge_network_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698