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

Side by Side Diff: net/quic/reliable_quic_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: resolve ramant's comment, using std:: for .cc 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 (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 #include "net/quic/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include <string>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "net/quic/iovector.h" 10 #include "net/quic/iovector.h"
9 #include "net/quic/quic_flow_controller.h" 11 #include "net/quic/quic_flow_controller.h"
10 #include "net/quic/quic_session.h" 12 #include "net/quic/quic_session.h"
11 #include "net/quic/quic_write_blocked_list.h" 13 #include "net/quic/quic_write_blocked_list.h"
12 14
13 using base::StringPiece; 15 using base::StringPiece;
14 using std::min; 16 using std::min;
17 using std::string;
15 18
16 namespace net { 19 namespace net {
17 20
18 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") 21 #define ENDPOINT (is_server_ ? "Server: " : " Client: ")
19 22
20 namespace { 23 namespace {
21 24
22 struct iovec MakeIovec(StringPiece data) { 25 struct iovec MakeIovec(StringPiece data) {
23 struct iovec iov = {const_cast<char*>(data.data()), 26 struct iovec iov = {const_cast<char*>(data.data()),
24 static_cast<size_t>(data.size())}; 27 static_cast<size_t>(data.size())};
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 541
539 bool ReliableQuicStream::IsFlowControlBlocked() { 542 bool ReliableQuicStream::IsFlowControlBlocked() {
540 if (flow_controller_.IsBlocked()) { 543 if (flow_controller_.IsBlocked()) {
541 return true; 544 return true;
542 } 545 }
543 return stream_contributes_to_connection_flow_control_ && 546 return stream_contributes_to_connection_flow_control_ &&
544 connection_flow_controller_->IsBlocked(); 547 connection_flow_controller_->IsBlocked();
545 } 548 }
546 549
547 } // namespace net 550 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698