| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |