| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/service/net/service_url_request_context.h" | 5 #include "chrome/service/net/service_url_request_context.h" |
| 6 | 6 |
| 7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
| 8 #include "chrome/service/service_process.h" | 8 #include "chrome/service/service_process.h" |
| 9 #include "net/base/cookie_monster.h" | 9 #include "net/base/cookie_monster.h" |
| 10 #include "net/base/cookie_policy.h" | 10 #include "net/base/cookie_policy.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 delete http_transaction_factory_; | 57 delete http_transaction_factory_; |
| 58 delete http_auth_handler_factory_; | 58 delete http_auth_handler_factory_; |
| 59 delete dnsrr_resolver_; | 59 delete dnsrr_resolver_; |
| 60 } | 60 } |
| 61 | 61 |
| 62 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter() | 62 ServiceURLRequestContextGetter::ServiceURLRequestContextGetter() |
| 63 : io_message_loop_proxy_( | 63 : io_message_loop_proxy_( |
| 64 g_service_process->io_thread()->message_loop_proxy()) { | 64 g_service_process->io_thread()->message_loop_proxy()) { |
| 65 } | 65 } |
| 66 | 66 |
| 67 URLRequestContext* ServiceURLRequestContextGetter::GetURLRequestContext() { | 67 URLRequestContext* |
| 68 ServiceURLRequestContextGetter::GetURLRequestContext() { |
| 68 if (!url_request_context_) | 69 if (!url_request_context_) |
| 69 url_request_context_ = new ServiceURLRequestContext(); | 70 url_request_context_ = new ServiceURLRequestContext(); |
| 70 return url_request_context_; | 71 return url_request_context_; |
| 71 } | 72 } |
| 72 | 73 |
| 73 scoped_refptr<base::MessageLoopProxy> | 74 scoped_refptr<base::MessageLoopProxy> |
| 74 ServiceURLRequestContextGetter::GetIOMessageLoopProxy() { | 75 ServiceURLRequestContextGetter::GetIOMessageLoopProxy() const { |
| 75 return io_message_loop_proxy_; | 76 return io_message_loop_proxy_; |
| 76 } | 77 } |
| 77 | 78 |
| 78 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {} | 79 ServiceURLRequestContextGetter::~ServiceURLRequestContextGetter() {} |
| OLD | NEW |