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

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

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Patch Set 4 : Create QuartcFactory. Made modification on the API. Change the constructor of QuartcS… 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_factory.h
diff --git a/net/quic/quartc/quartc_factory.h b/net/quic/quartc/quartc_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..7559385f82ee74b8c9426ddf35dca57a52386d90
--- /dev/null
+++ b/net/quic/quartc/quartc_factory.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_FACTORY_H_
+#define NET_QUIC_QUARTC_QUARTC_FACTORY_H_
+
+#include "net/quic/core/quic_connection.h"
+#include "net/quic/quartc/quartc_alarm_factory.h"
+#include "net/quic/quartc/quartc_connection_helper.h"
+#include "net/quic/quartc/quartc_factory_interface.h"
+#include "net/quic/quartc/quartc_packet_writer.h"
+
+namespace net {
+
+class QuartcFactory : public QuartcFactoryInterface {
+ public:
+ QuartcFactory();
+ ~QuartcFactory();
+
+ std::unique_ptr<QuartcSessionInterface> CreateQuartcSession(
+ const QuartcConfig& quartc_config) override;
+
+ private:
+ std::unique_ptr<QuicConnection> CreateQuicConnection(
+ const QuartcConfig& quartc_config,
+ Perspective perspective);
+
+ std::unique_ptr<QuartcAlarmFactory> alarm_factory_;
+ std::unique_ptr<QuicConfig> config_;
+ std::unique_ptr<QuartcConnectionHelper> helper_;
+};
+} // namepapce net
+
+#endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698