OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/system_url_request_context_getter.h" | |
6 | |
7 #include "chrome/browser/io_thread.h" | |
8 | |
9 SystemURLRequestContextGetter::SystemURLRequestContextGetter( | |
10 IOThread* io_thread) | |
11 : io_thread_(io_thread), | |
12 io_message_loop_proxy_(io_thread->message_loop_proxy()) { | |
willchan no longer on Chromium
2011/02/08 22:52:04
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::U
battre
2011/02/14 18:22:05
Done.
| |
13 } | |
14 | |
15 SystemURLRequestContextGetter::~SystemURLRequestContextGetter() {} | |
16 | |
17 net::URLRequestContext* SystemURLRequestContextGetter::GetURLRequestContext() { | |
willchan no longer on Chromium
2011/02/08 22:52:04
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::I
battre
2011/02/14 18:22:05
Done.
| |
18 return io_thread_->globals()->system_request_context; | |
19 } | |
20 | |
21 scoped_refptr<base::MessageLoopProxy> | |
22 SystemURLRequestContextGetter::GetIOMessageLoopProxy() const { | |
23 return io_message_loop_proxy_; | |
24 } | |
OLD | NEW |