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

Side by Side Diff: net/quic/quartc/quartc_factory_interface.h

Issue 2324833004: Define Stable API for WebRTC/Quartc (Closed)
Patch Set: Add virtual destructors required by WebRTC compiler. Created 4 years, 2 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_INTERFACE_H_
6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_
7
8 #include "net/quic/quartc/quartc_session_interface.h"
9
10 namespace net {
11
12 // Used to create instances for QuartcSession.
pthatcher2 2016/10/05 22:12:06 Either we should call it QuartcSessionFactory or t
zhihuang1 2016/10/13 06:22:39 Done.
13 class QuartcFactoryInterface {
14 public:
15 virtual ~QuartcFactoryInterface() {}
16
17 // This struct contains the required parameters to create a QuartcSession.
pthatcher2 2016/10/05 22:12:05 You can probably just remove this comment.
zhihuang1 2016/10/13 06:22:39 Done.
18 struct QuartcConfig {
pthatcher2 2016/10/05 22:12:05 Shouldn't this be named QuartcSessionConfig?
zhihuang1 2016/10/13 06:22:39 Done.
19 // Used to determine the perspective of the session.
pthatcher2 2016/10/05 22:12:06 This could be more clear by saying something like
zhihuang1 2016/10/13 06:22:39 I think this should be something like "The QuartcS
20 bool is_server = false;
21 // Used by the client to create a unique server ID for the
22 // QuicCryptoClientStream when doing crypto handshake.
23 std::string remote_fingerprint_value;
pthatcher2 2016/10/05 22:12:06 Why not something like "unique_remote_server_id"
zhihuang1 2016/10/13 06:22:39 Done.
24 // Used for creating a QuartcPacketWriter for QuicConnection, which is
25 // required when creating a QuartcSession. The QuartcPacketWriter will not
26 // take ownership of it.
pthatcher2 2016/10/05 22:12:06 A better comment would be something like "The way
27 QuartcSessionInterface::Transport* transport = nullptr;
pthatcher2 2016/10/05 22:12:06 Can we call this a QuartcSessionInterface::PacketT
zhihuang1 2016/10/13 06:22:40 Done.
28 };
29
30 virtual std::unique_ptr<QuartcSessionInterface> CreateQuartcSession(
31 const QuartcConfig& quartc_config) = 0;
32 };
33
34 // Creates a new instance of QuartcFactoryInterface.
35 std::unique_ptr<QuartcFactoryInterface> CreateQuartcFactory();
36
37 } // namepace net
38
39 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698