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

Unified Diff: net/spdy/spdy_session.h

Issue 15701009: [SPDY] Add a SpdyStreamType enum and use it for SpdyStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHECK -> DCHECK Created 7 years, 7 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 1a287ca33fa58aff99a5602105fc665a11e4a606..37435c6f48e08bab5260b146c9fd9896416362cf 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -32,6 +32,7 @@
#include "net/spdy/spdy_header_block.h"
#include "net/spdy/spdy_protocol.h"
#include "net/spdy/spdy_session_pool.h"
+#include "net/spdy/spdy_stream.h"
#include "net/spdy/spdy_write_queue.h"
#include "net/ssl/ssl_client_cert_type.h"
#include "net/ssl/ssl_config_service.h"
@@ -129,7 +130,8 @@ class NET_EXPORT_PRIVATE SpdyStreamRequest {
// returned, must not be called again without CancelRequest() or
// ReleaseStream() being called first. Otherwise, in case of an
// immediate error, this may be called again.
- int StartRequest(const scoped_refptr<SpdySession>& session,
+ int StartRequest(SpdyStreamType type,
+ const scoped_refptr<SpdySession>& session,
const GURL& url,
RequestPriority priority,
const BoundNetLog& net_log,
@@ -158,12 +160,14 @@ class NET_EXPORT_PRIVATE SpdyStreamRequest {
void OnRequestCompleteFailure(int rv);
// Accessors called by |session_|.
+ SpdyStreamType type() const { return type_; }
const GURL& url() const { return url_; }
RequestPriority priority() const { return priority_; }
const BoundNetLog& net_log() const { return net_log_; }
void Reset();
+ SpdyStreamType type_;
scoped_refptr<SpdySession> session_;
base::WeakPtr<SpdyStream> stream_;
GURL url_;

Powered by Google App Engine
This is Rietveld 408576698