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

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: Sync'd to revision p349162. 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
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_test_util_common.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) 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 int64* content_length) const; 585 int64* content_length) const;
585 586
586 const NextProto protocol_; 587 const NextProto protocol_;
587 const SpdyMajorVersion spdy_version_; 588 const SpdyMajorVersion spdy_version_;
588 GURL default_url_; 589 GURL default_url_;
589 }; 590 };
590 591
591 } // namespace net 592 } // namespace net
592 593
593 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 594 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698