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

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

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Lots of fixes driven by try jobs. Created 5 years, 3 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory); 182 DISALLOW_COPY_AND_ASSIGN(MockECSignatureCreatorFactory);
183 }; 183 };
184 184
185 // Helper to manage the lifetimes of the dependencies for a 185 // Helper to manage the lifetimes of the dependencies for a
186 // HttpNetworkTransaction. 186 // HttpNetworkTransaction.
187 struct SpdySessionDependencies { 187 struct SpdySessionDependencies {
188 // Default set of dependencies -- "null" proxy service. 188 // Default set of dependencies -- "null" proxy service.
189 explicit SpdySessionDependencies(NextProto protocol); 189 explicit SpdySessionDependencies(NextProto protocol);
190 190
191 // Custom proxy service dependency. 191 // Custom proxy service dependency.
192 SpdySessionDependencies(NextProto protocol, ProxyService* proxy_service); 192 SpdySessionDependencies(NextProto protocol,
193 scoped_ptr<ProxyService> proxy_service);
193 194
194 ~SpdySessionDependencies(); 195 ~SpdySessionDependencies();
195 196
196 static HttpNetworkSession* SpdyCreateSession( 197 static HttpNetworkSession* SpdyCreateSession(
197 SpdySessionDependencies* session_deps); 198 SpdySessionDependencies* session_deps);
198 static HttpNetworkSession* SpdyCreateSessionDeterministic( 199 static HttpNetworkSession* SpdyCreateSessionDeterministic(
199 SpdySessionDependencies* session_deps); 200 SpdySessionDependencies* session_deps);
200 static HttpNetworkSession::Params CreateSessionParams( 201 static HttpNetworkSession::Params CreateSessionParams(
201 SpdySessionDependencies* session_deps); 202 SpdySessionDependencies* session_deps);
202 203
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 int64* content_length) const; 587 int64* content_length) const;
587 588
588 const NextProto protocol_; 589 const NextProto protocol_;
589 const SpdyMajorVersion spdy_version_; 590 const SpdyMajorVersion spdy_version_;
590 GURL default_url_; 591 GURL default_url_;
591 }; 592 };
592 593
593 } // namespace net 594 } // namespace net
594 595
595 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 596 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698