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

Side by Side Diff: components/sync/core/network_time_update_callback.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_ 5 #ifndef COMPONENTS_SYNC_CORE_NETWORK_TIME_UPDATE_CALLBACK_H_
6 #define SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_ 6 #define COMPONENTS_SYNC_CORE_NETWORK_TIME_UPDATE_CALLBACK_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 // TODO(pvalenzuela): Avoid duplication of this typedef by defining it in a 13 // TODO(pvalenzuela): Avoid duplication of this typedef by defining it in a
14 // common location. This is duplicated here because its original definition in 14 // common location. This is duplicated here because its original definition in
15 // NetworkTimeTracker cannot be depended on. 15 // NetworkTimeTracker cannot be depended on.
16 // 16 //
17 // Callback for updating the network time. 17 // Callback for updating the network time.
18 // Params: 18 // Params:
19 // const base::Time& network_time - the new network time. 19 // const base::Time& network_time - the new network time.
20 // const base::TimeDelta& resolution - how precise the reading is. 20 // const base::TimeDelta& resolution - how precise the reading is.
21 // const base::TimeDelta& latency - the http request's latency. 21 // const base::TimeDelta& latency - the http request's latency.
22 typedef base::Callback<void(const base::Time&, 22 typedef base::Callback<
23 const base::TimeDelta&, 23 void(const base::Time&, const base::TimeDelta&, const base::TimeDelta&)>
24 const base::TimeDelta&)> NetworkTimeUpdateCallback; 24 NetworkTimeUpdateCallback;
25 25
26 } // namespace syncer 26 } // namespace syncer
27 27
28 #endif // SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_ 28 #endif // COMPONENTS_SYNC_CORE_NETWORK_TIME_UPDATE_CALLBACK_H_
OLDNEW
« no previous file with comments | « components/sync/core/network_resources.h ('k') | components/sync/core/non_blocking_sync_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698