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

Side by Side Diff: net/quic/core/quic_session.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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
« no previous file with comments | « net/quic/core/quic_server_session_base.h ('k') | net/quic/core/quic_simple_buffer_allocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_CORE_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_CORE_QUIC_SESSION_H_
8 #define NET_QUIC_CORE_QUIC_SESSION_H_ 8 #define NET_QUIC_CORE_QUIC_SESSION_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <map> 12 #include <map>
13 #include <memory> 13 #include <memory>
14 #include <string> 14 #include <string>
15 #include <unordered_map> 15 #include <unordered_map>
16 #include <unordered_set> 16 #include <unordered_set>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/compiler_specific.h" 19 #include "base/compiler_specific.h"
20 #include "base/containers/small_map.h" 20 #include "base/containers/small_map.h"
21 #include "base/macros.h" 21 #include "base/macros.h"
22 #include "base/strings/string_piece.h" 22 #include "base/strings/string_piece.h"
23 #include "net/base/net_export.h"
24 #include "net/quic/core/quic_connection.h" 23 #include "net/quic/core/quic_connection.h"
25 #include "net/quic/core/quic_crypto_stream.h" 24 #include "net/quic/core/quic_crypto_stream.h"
26 #include "net/quic/core/quic_packet_creator.h" 25 #include "net/quic/core/quic_packet_creator.h"
27 #include "net/quic/core/quic_packets.h" 26 #include "net/quic/core/quic_packets.h"
28 #include "net/quic/core/quic_stream.h" 27 #include "net/quic/core/quic_stream.h"
29 #include "net/quic/core/quic_write_blocked_list.h" 28 #include "net/quic/core/quic_write_blocked_list.h"
29 #include "net/quic/platform/api/quic_export.h"
30 30
31 namespace net { 31 namespace net {
32 32
33 class QuicCryptoStream; 33 class QuicCryptoStream;
34 class QuicFlowController; 34 class QuicFlowController;
35 class QuicStream; 35 class QuicStream;
36 36
37 namespace test { 37 namespace test {
38 class QuicSessionPeer; 38 class QuicSessionPeer;
39 } // namespace test 39 } // namespace test
40 40
41 class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface { 41 class QUIC_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
42 public: 42 public:
43 // An interface from the session to the entity owning the session. 43 // An interface from the session to the entity owning the session.
44 // This lets the session notify its owner (the Dispatcher) when the connection 44 // This lets the session notify its owner (the Dispatcher) when the connection
45 // is closed, blocked, or added/removed from the time-wait std::list. 45 // is closed, blocked, or added/removed from the time-wait std::list.
46 class Visitor { 46 class Visitor {
47 public: 47 public:
48 virtual ~Visitor() {} 48 virtual ~Visitor() {}
49 49
50 // Called when the connection is closed after the streams have been closed. 50 // Called when the connection is closed after the streams have been closed.
51 virtual void OnConnectionClosed(QuicConnectionId connection_id, 51 virtual void OnConnectionClosed(QuicConnectionId connection_id,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // The stream id which was last popped in OnCanWrite, or 0, if not under the 435 // The stream id which was last popped in OnCanWrite, or 0, if not under the
436 // call stack of OnCanWrite. 436 // call stack of OnCanWrite.
437 QuicStreamId currently_writing_stream_id_; 437 QuicStreamId currently_writing_stream_id_;
438 438
439 DISALLOW_COPY_AND_ASSIGN(QuicSession); 439 DISALLOW_COPY_AND_ASSIGN(QuicSession);
440 }; 440 };
441 441
442 } // namespace net 442 } // namespace net
443 443
444 #endif // NET_QUIC_CORE_QUIC_SESSION_H_ 444 #endif // NET_QUIC_CORE_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_server_session_base.h ('k') | net/quic/core/quic_simple_buffer_allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698