| OLD | NEW |
| 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 #include "net/url_request/url_request_context.h" | 5 #include "net/url_request/url_request_context.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/debug/alias.h" | 8 #include "base/debug/alias.h" |
| 9 #include "base/debug/stack_trace.h" | 9 #include "base/debug/stack_trace.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // FTPAuthCache is unique per context. | 56 // FTPAuthCache is unique per context. |
| 57 set_accept_language(other->accept_language_); | 57 set_accept_language(other->accept_language_); |
| 58 set_accept_charset(other->accept_charset_); | 58 set_accept_charset(other->accept_charset_); |
| 59 set_referrer_charset(other->referrer_charset_); | 59 set_referrer_charset(other->referrer_charset_); |
| 60 set_http_transaction_factory(other->http_transaction_factory_); | 60 set_http_transaction_factory(other->http_transaction_factory_); |
| 61 set_ftp_transaction_factory(other->ftp_transaction_factory_); | 61 set_ftp_transaction_factory(other->ftp_transaction_factory_); |
| 62 set_job_factory(other->job_factory_); | 62 set_job_factory(other->job_factory_); |
| 63 set_throttler_manager(other->throttler_manager_); | 63 set_throttler_manager(other->throttler_manager_); |
| 64 } | 64 } |
| 65 | 65 |
| 66 URLRequest* URLRequestContext::CreateRequest( |
| 67 const GURL& url, URLRequest::Delegate* delegate) const { |
| 68 return new URLRequest(url, delegate, this, network_delegate_); |
| 69 } |
| 70 |
| 66 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { | 71 void URLRequestContext::set_cookie_store(CookieStore* cookie_store) { |
| 67 cookie_store_ = cookie_store; | 72 cookie_store_ = cookie_store; |
| 68 } | 73 } |
| 69 | 74 |
| 70 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { | 75 const std::string& URLRequestContext::GetUserAgent(const GURL& url) const { |
| 71 return EmptyString(); | 76 return EmptyString(); |
| 72 } | 77 } |
| 73 | 78 |
| 74 void URLRequestContext::AssertNoURLRequests() const { | 79 void URLRequestContext::AssertNoURLRequests() const { |
| 75 int num_requests = url_requests_->size(); | 80 int num_requests = url_requests_->size(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 87 base::debug::Alias(url_buf); | 92 base::debug::Alias(url_buf); |
| 88 base::debug::Alias(&num_requests); | 93 base::debug::Alias(&num_requests); |
| 89 base::debug::Alias(&has_delegate); | 94 base::debug::Alias(&has_delegate); |
| 90 base::debug::Alias(&load_flags); | 95 base::debug::Alias(&load_flags); |
| 91 base::debug::Alias(&stack_trace); | 96 base::debug::Alias(&stack_trace); |
| 92 CHECK(false); | 97 CHECK(false); |
| 93 } | 98 } |
| 94 } | 99 } |
| 95 | 100 |
| 96 } // namespace net | 101 } // namespace net |
| OLD | NEW |