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

Side by Side Diff: net/tools/quic/quic_server_session.h

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_spdy_client_stream.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 server specific QuicSession subclass. 5 // A server specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0; 43 virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0;
44 }; 44 };
45 45
46 class QuicServerSession : public QuicSession { 46 class QuicServerSession : public QuicSession {
47 public: 47 public:
48 QuicServerSession(const QuicConfig& config, 48 QuicServerSession(const QuicConfig& config,
49 QuicConnection* connection, 49 QuicConnection* connection,
50 QuicServerSessionVisitor* visitor); 50 QuicServerSessionVisitor* visitor);
51 51
52 // Override the base class to notify the owner of the connection close. 52 // Override the base class to notify the owner of the connection close.
53 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; 53 virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) override;
54 virtual void OnWriteBlocked() OVERRIDE; 54 virtual void OnWriteBlocked() override;
55 55
56 // Sends a server config update to the client, containing new bandwidth 56 // Sends a server config update to the client, containing new bandwidth
57 // estimate. 57 // estimate.
58 virtual void OnCongestionWindowChange(QuicTime now) OVERRIDE; 58 virtual void OnCongestionWindowChange(QuicTime now) override;
59 59
60 virtual ~QuicServerSession(); 60 virtual ~QuicServerSession();
61 61
62 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config); 62 virtual void InitializeSession(const QuicCryptoServerConfig& crypto_config);
63 63
64 const QuicCryptoServerStream* crypto_stream() const { 64 const QuicCryptoServerStream* crypto_stream() const {
65 return crypto_stream_.get(); 65 return crypto_stream_.get();
66 } 66 }
67 67
68 // Override base class to process FEC config received from client. 68 // Override base class to process FEC config received from client.
69 virtual void OnConfigNegotiated() OVERRIDE; 69 virtual void OnConfigNegotiated() override;
70 70
71 void set_serving_region(string serving_region) { 71 void set_serving_region(string serving_region) {
72 serving_region_ = serving_region; 72 serving_region_ = serving_region;
73 } 73 }
74 74
75 protected: 75 protected:
76 // QuicSession methods: 76 // QuicSession methods:
77 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) OVERRIDE; 77 virtual QuicDataStream* CreateIncomingDataStream(QuicStreamId id) override;
78 virtual QuicDataStream* CreateOutgoingDataStream() OVERRIDE; 78 virtual QuicDataStream* CreateOutgoingDataStream() override;
79 virtual QuicCryptoServerStream* GetCryptoStream() OVERRIDE; 79 virtual QuicCryptoServerStream* GetCryptoStream() override;
80 80
81 // If we should create an incoming stream, returns true. Otherwise 81 // If we should create an incoming stream, returns true. Otherwise
82 // does error handling, including communicating the error to the client and 82 // does error handling, including communicating the error to the client and
83 // possibly closing the connection, and returns false. 83 // possibly closing the connection, and returns false.
84 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id); 84 virtual bool ShouldCreateIncomingDataStream(QuicStreamId id);
85 85
86 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( 86 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream(
87 const QuicCryptoServerConfig& crypto_config); 87 const QuicCryptoServerConfig& crypto_config);
88 88
89 private: 89 private:
(...skipping 12 matching lines...) Expand all
102 // Time at which we send the last SCUP to the client. 102 // Time at which we send the last SCUP to the client.
103 QuicTime last_server_config_update_time_; 103 QuicTime last_server_config_update_time_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); 105 DISALLOW_COPY_AND_ASSIGN(QuicServerSession);
106 }; 106 };
107 107
108 } // namespace tools 108 } // namespace tools
109 } // namespace net 109 } // namespace net
110 110
111 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 111 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | net/tools/quic/quic_spdy_client_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698