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

Side by Side Diff: net/spdy/spdy_session.h

Issue 2756503002: Allow SpdySessionPool to find/create SpdySession with IP pooling disabled. (Closed)
Patch Set: Created 3 years, 9 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/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('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 #ifndef NET_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 bool IsSendStalled() const { return session_send_window_size_ == 0; } 525 bool IsSendStalled() const { return session_send_window_size_ == 0; }
526 526
527 const NetLogWithSource& net_log() const { return net_log_; } 527 const NetLogWithSource& net_log() const { return net_log_; }
528 528
529 int GetPeerAddress(IPEndPoint* address) const; 529 int GetPeerAddress(IPEndPoint* address) const;
530 int GetLocalAddress(IPEndPoint* address) const; 530 int GetLocalAddress(IPEndPoint* address) const;
531 531
532 // Adds |alias| to set of aliases associated with this session. 532 // Adds |alias| to set of aliases associated with this session.
533 void AddPooledAlias(const SpdySessionKey& alias_key); 533 void AddPooledAlias(const SpdySessionKey& alias_key);
534 534
535 // Removes |alias| from set of aliases associated with this session.
536 void RemovePooledAlias(const SpdySessionKey& alias_key);
537
535 // Returns the set of aliases associated with this session. 538 // Returns the set of aliases associated with this session.
536 const std::set<SpdySessionKey>& pooled_aliases() const { 539 const std::set<SpdySessionKey>& pooled_aliases() const {
537 return pooled_aliases_; 540 return pooled_aliases_;
538 } 541 }
539 542
540 size_t GetDataFrameMinimumSize() const { 543 size_t GetDataFrameMinimumSize() const {
541 return buffered_spdy_framer_->GetDataFrameMinimumSize(); 544 return buffered_spdy_framer_->GetDataFrameMinimumSize();
542 } 545 }
543 546
544 size_t GetFrameHeaderSize() const { 547 size_t GetFrameHeaderSize() const {
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 // Used for posting asynchronous IO tasks. We use this even though 1223 // Used for posting asynchronous IO tasks. We use this even though
1221 // SpdySession is refcounted because we don't need to keep the SpdySession 1224 // SpdySession is refcounted because we don't need to keep the SpdySession
1222 // alive if the last reference is within a RunnableMethod. Just revoke the 1225 // alive if the last reference is within a RunnableMethod. Just revoke the
1223 // method. 1226 // method.
1224 base::WeakPtrFactory<SpdySession> weak_factory_; 1227 base::WeakPtrFactory<SpdySession> weak_factory_;
1225 }; 1228 };
1226 1229
1227 } // namespace net 1230 } // namespace net
1228 1231
1229 #endif // NET_SPDY_SPDY_SESSION_H_ 1232 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698