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

Unified Diff: net/quic/quartc/quartc_connection_helper.h

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Add virtual destructors required by WebRTC compiler. Created 4 years, 3 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
Index: net/quic/quartc/quartc_connection_helper.h
diff --git a/net/quic/quartc/quartc_connection_helper.h b/net/quic/quartc/quartc_connection_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..e74ff74d347814a9275f3c15c67f4b54e05a2b19
--- /dev/null
+++ b/net/quic/quartc/quartc_connection_helper.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2016 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_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_
+#define NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_
+
+#include "net/quic/core/crypto/quic_random.h"
+#include "net/quic/core/quic_clock.h"
+#include "net/quic/core/quic_connection.h"
+#include "net/quic/core/quic_simple_buffer_allocator.h"
+
+namespace net {
+
+// This is the helper class used to create QuicConnections.
pthatcher2 2016/10/05 22:12:05 This comment could be a little more descriptive.
zhihuang1 2016/10/13 06:22:39 Merged the QuartcConnectionHelper with QuartcFacto
+class NET_EXPORT_PRIVATE QuartcConnectionHelper
+ : public QuicConnectionHelperInterface {
+ public:
+ ~QuartcConnectionHelper() override;
+
+ // QuicConnectionHelperInterface overrides.
+ const QuicClock* GetClock() const override;
+
+ QuicRandom* GetRandomGenerator() override;
+
+ QuicBufferAllocator* GetBufferAllocator() override;
+
+ private:
+ QuicClock clock_;
+ SimpleBufferAllocator buffer_allocator_;
+};
+
+} // namepace net
+
+#endif // NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698