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

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

Issue 10299002: Stop refcounting URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize to NULL Created 8 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
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 scoped_ptr<MockClientSocketFactory> socket_factory; 366 scoped_ptr<MockClientSocketFactory> socket_factory;
367 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; 367 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory;
368 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 368 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
369 HttpServerPropertiesImpl http_server_properties; 369 HttpServerPropertiesImpl http_server_properties;
370 std::string trusted_spdy_proxy; 370 std::string trusted_spdy_proxy;
371 }; 371 };
372 372
373 class SpdyURLRequestContext : public URLRequestContext { 373 class SpdyURLRequestContext : public URLRequestContext {
374 public: 374 public:
375 SpdyURLRequestContext(); 375 SpdyURLRequestContext();
376 virtual ~SpdyURLRequestContext();
376 377
377 MockClientSocketFactory& socket_factory() { return socket_factory_; } 378 MockClientSocketFactory& socket_factory() { return socket_factory_; }
378 379
379 protected:
380 virtual ~SpdyURLRequestContext();
381
382 private: 380 private:
383 MockClientSocketFactory socket_factory_; 381 MockClientSocketFactory socket_factory_;
384 net::URLRequestContextStorage storage_; 382 net::URLRequestContextStorage storage_;
385 }; 383 };
386 384
387 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); 385 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type);
388 386
389 class SpdySessionPoolPeer { 387 class SpdySessionPoolPeer {
390 public: 388 public:
391 explicit SpdySessionPoolPeer(SpdySessionPool* pool) 389 explicit SpdySessionPoolPeer(SpdySessionPool* pool)
(...skipping 29 matching lines...) Expand all
421 419
422 private: 420 private:
423 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); 421 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper);
424 }; 422 };
425 423
426 } // namespace test_spdy2 424 } // namespace test_spdy2
427 425
428 } // namespace net 426 } // namespace net
429 427
430 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 428 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698