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

Unified Diff: net/spdy/spdy_session.h

Issue 9667016: Close idle connections / SPDY sessions when needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reland willchan's patch with eroman's fixes. 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 side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_session.h
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index b3208d64f52fd82b41373ae2b12d808dbf0f863a..7640849d38f5ad69853dc74a7c85b607de1af013 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -46,7 +46,8 @@ class SpdyStream;
class SSLInfo;
class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
- public spdy::BufferedSpdyFramerVisitorInterface {
+ public spdy::BufferedSpdyFramerVisitorInterface,
+ public LayeredPool {
public:
// FlowControl provides the ability for unit tests to either enable or disable
// flow control (independent of NPN protocol negotiated). If
@@ -278,6 +279,9 @@ class NET_EXPORT SpdySession : public base::RefCounted<SpdySession>,
// SPDY CREDENTIAL frame to be sent first, with an origin bound certificate.
bool NeedsCredentials(const HostPortPair& origin) const;
+ // LayeredPool implementation.
+ virtual bool CloseOneIdleConnection() OVERRIDE;
+
private:
friend class base::RefCounted<SpdySession>;

Powered by Google App Engine
This is Rietveld 408576698