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

Side by Side Diff: net/quic/quic_spdy_stream.cc

Issue 1418823003: Remove unused ENDPOINT macro from QuicSpdyStream. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105440916
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "net/quic/quic_spdy_stream.h" 5 #include "net/quic/quic_spdy_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_spdy_session.h" 8 #include "net/quic/quic_spdy_session.h"
9 #include "net/quic/quic_utils.h" 9 #include "net/quic/quic_utils.h"
10 #include "net/quic/quic_write_blocked_list.h" 10 #include "net/quic/quic_write_blocked_list.h"
11 11
12 using base::StringPiece; 12 using base::StringPiece;
13 using std::min; 13 using std::min;
14 14
15 namespace net { 15 namespace net {
16 16
17 #define ENDPOINT \
18 (session()->perspective() == Perspective::IS_SERVER ? "Server: " : "Client:" \
19 " ")
20
21 namespace { 17 namespace {
22 18
23 // This is somewhat arbitrary. It's possible, but unlikely, we will either fail 19 // This is somewhat arbitrary. It's possible, but unlikely, we will either fail
24 // to set a priority client-side, or cancel a stream before stripping the 20 // to set a priority client-side, or cancel a stream before stripping the
25 // priority from the wire server-side. In either case, start out with a 21 // priority from the wire server-side. In either case, start out with a
26 // priority in the middle. 22 // priority in the middle.
27 QuicPriority kDefaultPriority = 3; 23 QuicPriority kDefaultPriority = 3;
28 24
29 } // namespace 25 } // namespace
30 26
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 visitor_ = nullptr; 123 visitor_ = nullptr;
128 visitor->OnClose(this); 124 visitor->OnClose(this);
129 } 125 }
130 } 126 }
131 127
132 bool QuicSpdyStream::FinishedReadingHeaders() const { 128 bool QuicSpdyStream::FinishedReadingHeaders() const {
133 return headers_decompressed_ && decompressed_headers_.empty(); 129 return headers_decompressed_ && decompressed_headers_.empty();
134 } 130 }
135 131
136 } // namespace net 132 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698