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

Side by Side Diff: net/spdy/spdy_test_util_spdy3.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_test_util_spdy2.h ('k') | net/test/spawner_communicator.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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 scoped_ptr<MockClientSocketFactory> socket_factory; 367 scoped_ptr<MockClientSocketFactory> socket_factory;
368 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; 368 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory;
369 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 369 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
370 HttpServerPropertiesImpl http_server_properties; 370 HttpServerPropertiesImpl http_server_properties;
371 std::string trusted_spdy_proxy; 371 std::string trusted_spdy_proxy;
372 }; 372 };
373 373
374 class SpdyURLRequestContext : public URLRequestContext { 374 class SpdyURLRequestContext : public URLRequestContext {
375 public: 375 public:
376 SpdyURLRequestContext(); 376 SpdyURLRequestContext();
377 virtual ~SpdyURLRequestContext();
377 378
378 MockClientSocketFactory& socket_factory() { return socket_factory_; } 379 MockClientSocketFactory& socket_factory() { return socket_factory_; }
379 380
380 protected:
381 virtual ~SpdyURLRequestContext();
382
383 private: 381 private:
384 MockClientSocketFactory socket_factory_; 382 MockClientSocketFactory socket_factory_;
385 net::URLRequestContextStorage storage_; 383 net::URLRequestContextStorage storage_;
386 }; 384 };
387 385
388 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type); 386 const SpdyHeaderInfo MakeSpdyHeader(SpdyControlType type);
389 387
390 class SpdySessionPoolPeer { 388 class SpdySessionPoolPeer {
391 public: 389 public:
392 explicit SpdySessionPoolPeer(SpdySessionPool* pool) 390 explicit SpdySessionPoolPeer(SpdySessionPool* pool)
(...skipping 29 matching lines...) Expand all
422 420
423 private: 421 private:
424 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper); 422 DISALLOW_COPY_AND_ASSIGN(SpdyTestStateHelper);
425 }; 423 };
426 424
427 } // namespace test_spdy3 425 } // namespace test_spdy3
428 426
429 } // namespace net 427 } // namespace net
430 428
431 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 429 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_spdy2.h ('k') | net/test/spawner_communicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698