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

Side by Side Diff: webkit/tools/test_shell/test_shell_request_context.cc

Issue 165430: Reference count ProxyService.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Sync Created 11 years, 4 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/url_request/url_request_unittest.cc ('k') | no next file » | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "webkit/tools/test_shell/test_shell_request_context.h" 5 #include "webkit/tools/test_shell/test_shell_request_context.h"
6 6
7 #include "net/base/cookie_monster.h" 7 #include "net/base/cookie_monster.h"
8 #include "net/base/host_resolver.h" 8 #include "net/base/host_resolver.h"
9 #include "net/ftp/ftp_network_layer.h" 9 #include "net/ftp/ftp_network_layer.h"
10 #include "net/proxy/proxy_service.h" 10 #include "net/proxy/proxy_service.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 cache->set_mode(cache_mode); 56 cache->set_mode(cache_mode);
57 http_transaction_factory_ = cache; 57 http_transaction_factory_ = cache;
58 58
59 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); 59 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_);
60 } 60 }
61 61
62 TestShellRequestContext::~TestShellRequestContext() { 62 TestShellRequestContext::~TestShellRequestContext() {
63 delete cookie_store_; 63 delete cookie_store_;
64 delete ftp_transaction_factory_; 64 delete ftp_transaction_factory_;
65 delete http_transaction_factory_; 65 delete http_transaction_factory_;
66 delete proxy_service_;
67 } 66 }
68 67
69 const std::string& TestShellRequestContext::GetUserAgent( 68 const std::string& TestShellRequestContext::GetUserAgent(
70 const GURL& url) const { 69 const GURL& url) const {
71 return webkit_glue::GetUserAgent(url); 70 return webkit_glue::GetUserAgent(url);
72 } 71 }
OLDNEW
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698