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 "content/shell/shell_url_request_context_getter.h" | 5 #include "content/shell/shell_url_request_context_getter.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_split.h" | 8 #include "base/string_split.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "net/base/cert_verifier.h" | 10 #include "net/base/cert_verifier.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 NULL, | 97 NULL, |
98 main_backend); | 98 main_backend); |
99 storage_->set_http_transaction_factory(main_cache); | 99 storage_->set_http_transaction_factory(main_cache); |
100 | 100 |
101 storage_->set_job_factory(new net::URLRequestJobFactory); | 101 storage_->set_job_factory(new net::URLRequestJobFactory); |
102 } | 102 } |
103 | 103 |
104 return url_request_context_; | 104 return url_request_context_; |
105 } | 105 } |
106 | 106 |
107 net::CookieStore* ShellURLRequestContextGetter::DONTUSEME_GetCookieStore() { | |
108 if (BrowserThread::CurrentlyOn(BrowserThread::IO)) | |
109 return GetURLRequestContext()->cookie_store(); | |
110 NOTIMPLEMENTED(); | |
111 return NULL; | |
112 } | |
113 | |
114 scoped_refptr<base::MessageLoopProxy> | 107 scoped_refptr<base::MessageLoopProxy> |
115 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const { | 108 ShellURLRequestContextGetter::GetIOMessageLoopProxy() const { |
116 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 109 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
117 } | 110 } |
118 | 111 |
119 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { | 112 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { |
120 return url_request_context_->host_resolver(); | 113 return url_request_context_->host_resolver(); |
121 } | 114 } |
122 | 115 |
123 } // namespace content | 116 } // namespace content |
OLD | NEW |