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

Unified Diff: webrtc/p2p/base/quicconnectionhelper.h

Issue 1648763002: Create QuicSession (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/p2p/base/quicconnectionhelper.cc » ('j') | webrtc/p2p/base/quicconnectionhelper.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/quicconnectionhelper.h
diff --git a/webrtc/p2p/base/quicconnectionhelper.h b/webrtc/p2p/base/quicconnectionhelper.h
new file mode 100644
index 0000000000000000000000000000000000000000..a25953192913984575fcc8272874b98846c4bef9
--- /dev/null
+++ b/webrtc/p2p/base/quicconnectionhelper.h
@@ -0,0 +1,41 @@
+/*
pthatcher1 2016/01/30 03:01:52 Can we put all of these files in a directory calle
mikescarlett 2016/02/03 17:41:01 Done.
+ * Copyright 2016 The WebRTC Project Authors. All rights reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#ifndef WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_
+#define WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_
+
+#include "net/quic/crypto/quic_random.h"
+#include "net/quic/quic_alarm.h"
+#include "net/quic/quic_clock.h"
+#include "net/quic/quic_connection.h"
+
+#include "webrtc/base/thread.h"
+
+namespace cricket {
+
+// Helper methods for QuicConnection timing and random number generation
+class QuicConnectionHelper : public net::QuicConnectionHelperInterface {
+ public:
+ explicit QuicConnectionHelper(rtc::Thread* thread);
+ ~QuicConnectionHelper() override;
+
+ // QuicConnectionHelperInterface
+ const net::QuicClock* GetClock() const override;
+ net::QuicRandom* GetRandomGenerator() override;
+ net::QuicAlarm* CreateAlarm(net::QuicAlarm::Delegate* delegate) override;
+
+ private:
+ net::QuicClock clock_;
+ rtc::Thread* thread_;
+};
+
+} // namespace cricket
+
+#endif // WEBRTC_P2P_BASE_QUICCONNECTIONHELPER_H_
« no previous file with comments | « no previous file | webrtc/p2p/base/quicconnectionhelper.cc » ('j') | webrtc/p2p/base/quicconnectionhelper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698