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

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

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Create Quartc API 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..c96b8e2d1c3895059bce1ab92600771aca3f5c41
--- /dev/null
+++ b/net/quic/quartc/quartc_connection_helper.h
@@ -0,0 +1,34 @@
+// 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_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_alarm.h"
+#include "net/quic/core/quic_alarm_factory.h"
skvlad-chromium 2016/09/22 01:54:25 Are these two includes necessary?
zhihuang1 2016/09/22 18:53:52 No, these should be removed.
+#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 for Quartc to create a QuicConnection.
skvlad-chromium 2016/09/22 01:54:25 The name 'Quartc' may not tell much to someone who
+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