Infobar material design refresh: bg color
[chromium-blink-merge.git] / sync / internal_api / public / network_time_update_callback.h
blob1efa2414982441bee3a74cff1096590799fe793d
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
3 // found in the LICENSE file.
5 #ifndef SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_
6 #define SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_
8 #include "base/callback.h"
9 #include "base/time/time.h"
11 namespace syncer {
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
15 // NetworkTimeTracker cannot be depended on.
17 // Callback for updating the network time.
18 // Params:
19 // const base::Time& network_time - the new network time.
20 // const base::TimeDelta& resolution - how precise the reading is.
21 // const base::TimeDelta& latency - the http request's latency.
22 typedef base::Callback<void(const base::Time&,
23 const base::TimeDelta&,
24 const base::TimeDelta&)> NetworkTimeUpdateCallback;
26 } // namespace syncer
28 #endif // SYNC_INTERNAL_API_PUBLIC_NETWORK_TIME_UPDATE_CALLBACK_H_