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

Side by Side Diff: net/spdy/spdy_test_util_common.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_TEST_UTIL_COMMON_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "crypto/ec_private_key.h" 10 #include "crypto/ec_private_key.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Returns the SpdyPriority embedded in the given frame. Returns true 126 // Returns the SpdyPriority embedded in the given frame. Returns true
127 // and fills in |priority| on success. 127 // and fills in |priority| on success.
128 bool GetSpdyPriority(SpdyMajorVersion version, 128 bool GetSpdyPriority(SpdyMajorVersion version,
129 const SpdyFrame& frame, 129 const SpdyFrame& frame,
130 SpdyPriority* priority); 130 SpdyPriority* priority);
131 131
132 // Tries to create a stream in |session| synchronously. Returns NULL 132 // Tries to create a stream in |session| synchronously. Returns NULL
133 // on failure. 133 // on failure.
134 base::WeakPtr<SpdyStream> CreateStreamSynchronously( 134 base::WeakPtr<SpdyStream> CreateStreamSynchronously(
135 SpdyStreamType type,
135 const scoped_refptr<SpdySession>& session, 136 const scoped_refptr<SpdySession>& session,
136 const GURL& url, 137 const GURL& url,
137 RequestPriority priority, 138 RequestPriority priority,
138 const BoundNetLog& net_log); 139 const BoundNetLog& net_log);
139 140
140 // Helper class used by some tests to release a stream as soon as it's 141 // Helper class used by some tests to release a stream as soon as it's
141 // created. 142 // created.
142 class StreamReleaserCallback : public TestCompletionCallbackBase { 143 class StreamReleaserCallback : public TestCompletionCallbackBase {
143 public: 144 public:
144 StreamReleaserCallback(); 145 StreamReleaserCallback();
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 scoped_ptr<SpdyFramer> CreateFramer() const; 396 scoped_ptr<SpdyFramer> CreateFramer() const;
396 397
397 private: 398 private:
398 const NextProto protocol_; 399 const NextProto protocol_;
399 const SpdyMajorVersion spdy_version_; 400 const SpdyMajorVersion spdy_version_;
400 }; 401 };
401 402
402 } // namespace net 403 } // namespace net
403 404
404 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 405 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698