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

Side by Side Diff: components/sync/engine/net/http_bridge.cc

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. 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/engine/net/http_bridge.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bit_cast.h" 11 #include "base/bit_cast.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/metrics/sparse_histogram.h" 14 #include "base/metrics/sparse_histogram.h"
15 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 int64_t sane_time_ms = 0; 435 int64_t sane_time_ms = 0;
436 if (base::StringToInt64(sane_time_str, &sane_time_ms)) { 436 if (base::StringToInt64(sane_time_str, &sane_time_ms)) {
437 network_time_update_callback_.Run( 437 network_time_update_callback_.Run(
438 base::Time::FromJsTime(sane_time_ms), 438 base::Time::FromJsTime(sane_time_ms),
439 base::TimeDelta::FromMilliseconds(1), 439 base::TimeDelta::FromMilliseconds(1),
440 fetch_state_.end_time - fetch_state_.start_time); 440 fetch_state_.end_time - fetch_state_.start_time);
441 } 441 }
442 } 442 }
443 443
444 } // namespace syncer 444 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/net/http_bridge.h ('k') | components/sync/engine/net/http_bridge_network_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698