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

Side by Side Diff: net/quic/chromium/quic_chromium_client_session.cc

Issue 2229393003: net: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
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/chromium/quic_chromium_client_session.h" 5 #include "net/quic/chromium/quic_chromium_client_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 return QuicSpdySession::OnStreamFrame(frame); 411 return QuicSpdySession::OnStreamFrame(frame);
412 } 412 }
413 413
414 void QuicChromiumClientSession::AddObserver(Observer* observer) { 414 void QuicChromiumClientSession::AddObserver(Observer* observer) {
415 if (going_away_) { 415 if (going_away_) {
416 RecordUnexpectedObservers(ADD_OBSERVER); 416 RecordUnexpectedObservers(ADD_OBSERVER);
417 observer->OnSessionClosed(ERR_UNEXPECTED, port_migration_detected_); 417 observer->OnSessionClosed(ERR_UNEXPECTED, port_migration_detected_);
418 return; 418 return;
419 } 419 }
420 420
421 DCHECK(!ContainsKey(observers_, observer)); 421 DCHECK(!base::ContainsKey(observers_, observer));
422 observers_.insert(observer); 422 observers_.insert(observer);
423 } 423 }
424 424
425 void QuicChromiumClientSession::RemoveObserver(Observer* observer) { 425 void QuicChromiumClientSession::RemoveObserver(Observer* observer) {
426 DCHECK(ContainsKey(observers_, observer)); 426 DCHECK(base::ContainsKey(observers_, observer));
427 observers_.erase(observer); 427 observers_.erase(observer);
428 } 428 }
429 429
430 int QuicChromiumClientSession::TryCreateStream( 430 int QuicChromiumClientSession::TryCreateStream(
431 StreamRequest* request, 431 StreamRequest* request,
432 QuicChromiumClientStream** stream) { 432 QuicChromiumClientStream** stream) {
433 if (goaway_received()) { 433 if (goaway_received()) {
434 DVLOG(1) << "Going away."; 434 DVLOG(1) << "Going away.";
435 return ERR_CONNECTION_CLOSED; 435 return ERR_CONNECTION_CLOSED;
436 } 436 }
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 } 1221 }
1222 1222
1223 void QuicChromiumClientSession::DeletePromised( 1223 void QuicChromiumClientSession::DeletePromised(
1224 QuicClientPromisedInfo* promised) { 1224 QuicClientPromisedInfo* promised) {
1225 if (IsOpenStream(promised->id())) 1225 if (IsOpenStream(promised->id()))
1226 streams_pushed_and_claimed_count_++; 1226 streams_pushed_and_claimed_count_++;
1227 QuicClientSessionBase::DeletePromised(promised); 1227 QuicClientSessionBase::DeletePromised(promised);
1228 } 1228 }
1229 1229
1230 } // namespace net 1230 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/crypto/proof_verifier_chromium.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698