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

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

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_headers_stream.h" 5 #include "net/quic/quic_headers_stream.h"
6 6
7 #include "net/quic/quic_session.h" 7 #include "net/quic/quic_session.h"
8 8
9 using base::StringPiece; 9 using base::StringPiece;
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 void OnReceiveCompressedFrame(SpdyStreamId stream_id, 153 void OnReceiveCompressedFrame(SpdyStreamId stream_id,
154 SpdyFrameType type, 154 SpdyFrameType type,
155 size_t frame_len) override { 155 size_t frame_len) override {
156 if (stream_->IsConnected()) { 156 if (stream_->IsConnected()) {
157 stream_->OnCompressedFrameSize(frame_len); 157 stream_->OnCompressedFrameSize(frame_len);
158 } 158 }
159 } 159 }
160 160
161 private: 161 private:
162 void CloseConnection(const string& details) { 162 void CloseConnection(const std::string& details) {
163 if (stream_->IsConnected()) { 163 if (stream_->IsConnected()) {
164 stream_->CloseConnectionWithDetails( 164 stream_->CloseConnectionWithDetails(
165 QUIC_INVALID_HEADERS_STREAM_DATA, details); 165 QUIC_INVALID_HEADERS_STREAM_DATA, details);
166 } 166 }
167 } 167 }
168 168
169 private: 169 private:
170 QuicHeadersStream* stream_; 170 QuicHeadersStream* stream_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(SpdyFramerVisitor); 172 DISALLOW_COPY_AND_ASSIGN(SpdyFramerVisitor);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 DCHECK_EQ(kInvalidStreamId, stream_id_); 269 DCHECK_EQ(kInvalidStreamId, stream_id_);
270 DCHECK_EQ(0u, frame_len_); 270 DCHECK_EQ(0u, frame_len_);
271 frame_len_ = frame_len; 271 frame_len_ = frame_len;
272 } 272 }
273 273
274 bool QuicHeadersStream::IsConnected() { 274 bool QuicHeadersStream::IsConnected() {
275 return session()->connection()->connected(); 275 return session()->connection()->connected();
276 } 276 }
277 277
278 } // namespace net 278 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698