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

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

Issue 129873010: Deprecate instead of close SPDY sessions upon network change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r249187) Created 6 years, 10 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
« no previous file with comments | « no previous file | 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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // the session as permanently closed. Callers must assume that the 349 // the session as permanently closed. Callers must assume that the
350 // session is destroyed after this is called. (However, it may not 350 // session is destroyed after this is called. (However, it may not
351 // be destroyed right away, e.g. when a SpdySession function is 351 // be destroyed right away, e.g. when a SpdySession function is
352 // present in the call stack.) 352 // present in the call stack.)
353 // 353 //
354 // |err| should be < ERR_IO_PENDING; this function is intended to be 354 // |err| should be < ERR_IO_PENDING; this function is intended to be
355 // called on error. 355 // called on error.
356 // |description| indicates the reason for the error. 356 // |description| indicates the reason for the error.
357 void CloseSessionOnError(Error err, const std::string& description); 357 void CloseSessionOnError(Error err, const std::string& description);
358 358
359 // Mark this session as unavailable, meaning that it will not be used to
360 // service new streams. Unlike when a GOAWAY frame is received, this function
361 // will not close any streams.
362 void MakeUnavailable();
363
359 // Retrieves information on the current state of the SPDY session as a 364 // Retrieves information on the current state of the SPDY session as a
360 // Value. Caller takes possession of the returned value. 365 // Value. Caller takes possession of the returned value.
361 base::Value* GetInfoAsValue() const; 366 base::Value* GetInfoAsValue() const;
362 367
363 // Indicates whether the session is being reused after having successfully 368 // Indicates whether the session is being reused after having successfully
364 // used to send/receive data in the past. 369 // used to send/receive data in the past.
365 bool IsReused() const; 370 bool IsReused() const;
366 371
367 // Returns true if the underlying transport socket ever had any reads or 372 // Returns true if the underlying transport socket ever had any reads or
368 // writes. 373 // writes.
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 // This SPDY proxy is allowed to push resources from origins that are 1119 // This SPDY proxy is allowed to push resources from origins that are
1115 // different from those of their associated streams. 1120 // different from those of their associated streams.
1116 HostPortPair trusted_spdy_proxy_; 1121 HostPortPair trusted_spdy_proxy_;
1117 1122
1118 TimeFunc time_func_; 1123 TimeFunc time_func_;
1119 }; 1124 };
1120 1125
1121 } // namespace net 1126 } // namespace net
1122 1127
1123 #endif // NET_SPDY_SPDY_SESSION_H_ 1128 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698