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

Unified Diff: net/tools/quic/quic_epoll_clock.h

Issue 2551603002: Move QuicClock to quic/platform/ (Closed)
Patch Set: missing 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
« no previous file with comments | « net/tools/quic/quic_epoll_alarm_factory_test.cc ('k') | net/tools/quic/quic_epoll_clock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_epoll_clock.h
diff --git a/net/tools/quic/quic_epoll_clock.h b/net/tools/quic/quic_epoll_clock.h
deleted file mode 100644
index 509d3bf7e4df817c0e65b0a3dc19285709c1c065..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_epoll_clock.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_TOOLS_QUIC_QUIC_EPOLL_CLOCK_H_
-#define NET_TOOLS_QUIC_QUIC_EPOLL_CLOCK_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "net/quic/core/quic_clock.h"
-#include "net/quic/core/quic_time.h"
-
-namespace net {
-
-class EpollServer;
-
-
-// Clock to efficiently retrieve an approximately accurate time from an
-// EpollServer.
-class QuicEpollClock : public QuicClock {
- public:
- explicit QuicEpollClock(EpollServer* epoll_server);
- ~QuicEpollClock() override;
-
- // Returns the approximate current time as a QuicTime object.
- QuicTime ApproximateNow() const override;
-
- // Returns the current time as a QuicTime object.
- // Note: this uses significant resources, please use only if needed.
- QuicTime Now() const override;
-
- // Returns the current time as a QuicWallTime object.
- // Note: this uses significant resources, please use only if needed.
- QuicWallTime WallNow() const override;
-
- // Override to do less work in this implementation. The epoll clock is
- // already based on system (unix epoch) time, no conversion required.
- QuicTime ConvertWallTimeToQuicTime(
- const QuicWallTime& walltime) const override;
-
- protected:
- EpollServer* epoll_server_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(QuicEpollClock);
-};
-
-} // namespace net
-
-#endif // NET_TOOLS_QUIC_QUIC_EPOLL_CLOCK_H_
« no previous file with comments | « net/tools/quic/quic_epoll_alarm_factory_test.cc ('k') | net/tools/quic/quic_epoll_clock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698