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

Unified Diff: net/quic/platform/api/quic_clock.cc

Issue 2547233002: Add a QuicChromiumClock and make QuicClock abstract to match internal code. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/platform/api/quic_clock.cc
diff --git a/net/quic/platform/impl/quic_clock.cc b/net/quic/platform/api/quic_clock.cc
similarity index 65%
rename from net/quic/platform/impl/quic_clock.cc
rename to net/quic/platform/api/quic_clock.cc
index 42b9884acfddef8b279095a55e426e73e4deb3c1..4c52c3e022ff486b80a91119bd5b70c8de323516 100644
--- a/net/quic/platform/impl/quic_clock.cc
+++ b/net/quic/platform/api/quic_clock.cc
@@ -4,29 +4,12 @@
#include "net/quic/platform/api/quic_clock.h"
-#include "base/time/time.h"
-
namespace net {
QuicClock::QuicClock() {}
QuicClock::~QuicClock() {}
-QuicTime QuicClock::ApproximateNow() const {
- // At the moment, Chrome does not have a distinct notion of ApproximateNow().
- // We should consider implementing this using MessageLoop::recent_time_.
- return Now();
-}
-
-QuicTime QuicClock::Now() const {
- return QuicTime(base::TimeTicks::Now());
-}
-
-QuicWallTime QuicClock::WallNow() const {
- return QuicWallTime::FromUNIXMicroseconds(base::Time::Now().ToJavaTime() *
- 1000);
-}
-
QuicTime QuicClock::ConvertWallTimeToQuicTime(
Jana 2016/12/03 19:32:19 Since all methods except for this one are pure vir
const QuicWallTime& walltime) const {
// ..........................

Powered by Google App Engine
This is Rietveld 408576698