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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_QUARTC_QUARTC_FACTORY_H_
6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_
7
8 #include "net/quic/core/quic_connection.h"
9 #include "net/quic/quartc/quartc_alarm_factory.h"
10 #include "net/quic/quartc/quartc_connection_helper.h"
11 #include "net/quic/quartc/quartc_factory_interface.h"
12 #include "net/quic/quartc/quartc_packet_writer.h"
13
14 namespace net {
15
16 class QuartcFactory : public QuartcFactoryInterface {
17 public:
18 QuartcFactory();
19 ~QuartcFactory();
20
21 std::unique_ptr<QuartcSessionInterface> CreateQuartcSession(
22 const QuartcConfig& quartc_config) override;
23
24 private:
25 std::unique_ptr<QuicConnection> CreateQuicConnection(
26 const QuartcConfig& quartc_config,
27 Perspective perspective);
28
29 std::unique_ptr<QuartcAlarmFactory> alarm_factory_;
30 std::unique_ptr<QuicConfig> config_;
31 std::unique_ptr<QuartcConnectionHelper> helper_;
32 };
33 } // namepapce net
34
35 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698