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

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

Issue 9705046: Switch CreateSpdyHeadersFromHttpRequest to construct the correct headers based on the spdy protocol… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool NeedsCredentials(const HostPortPair& origin) const; 273 bool NeedsCredentials(const HostPortPair& origin) const;
274 274
275 // Adds |alias| to set of aliases associated with this session. 275 // Adds |alias| to set of aliases associated with this session.
276 void AddPooledAlias(const HostPortProxyPair& alias); 276 void AddPooledAlias(const HostPortProxyPair& alias);
277 277
278 // Returns the set of aliases associated with this session. 278 // Returns the set of aliases associated with this session.
279 const std::set<HostPortProxyPair>& pooled_aliases() const { 279 const std::set<HostPortProxyPair>& pooled_aliases() const {
280 return pooled_aliases_; 280 return pooled_aliases_;
281 } 281 }
282 282
283 int GetProtocolVersion() const;
284
283 private: 285 private:
284 friend class base::RefCounted<SpdySession>; 286 friend class base::RefCounted<SpdySession>;
285 287
286 // Allow tests to access our innards for testing purposes. 288 // Allow tests to access our innards for testing purposes.
287 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, Ping); 289 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, Ping);
288 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, FailedPing); 290 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, FailedPing);
289 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, GetActivePushStream); 291 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, GetActivePushStream);
290 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, Ping); 292 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, Ping);
291 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, FailedPing); 293 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, FailedPing);
292 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, GetActivePushStream); 294 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, GetActivePushStream);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 720
719 const int status_; 721 const int status_;
720 const std::string description_; 722 const std::string description_;
721 723
722 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter); 724 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySessionCloseParameter);
723 }; 725 };
724 726
725 } // namespace net 727 } // namespace net
726 728
727 #endif // NET_SPDY_SPDY_SESSION_H_ 729 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698