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

Unified Diff: net/quic/quartc/quartc_factory.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_factory.h
diff --git a/net/quic/quartc/quartc_factory.h b/net/quic/quartc/quartc_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..b73543c89c70dd18ef47ebc9a92eee756df94827
--- /dev/null
+++ b/net/quic/quartc/quartc_factory.h
@@ -0,0 +1,36 @@
+// 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 {
Ryan Hamilton 2016/10/10 19:48:30 class comment, please.
+ public:
+ QuartcFactory();
+ ~QuartcFactory() override;
+
+ 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_;
pthatcher2 2016/10/05 22:12:05 This could use a comment also. For example, where
pthatcher2 2016/10/05 22:12:05 Should this be quic_config_ to make it clear that
zhihuang1 2016/10/13 06:22:39 Agreed.
+ std::unique_ptr<QuartcConnectionHelper> helper_;
pthatcher2 2016/10/05 22:12:05 Why do we have the QuartcConnetionHelper owned by
+};
+
+} // namepapce net
+
+#endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698