Chromium Code Reviews| Index: chrome/browser/system_url_request_context_getter.cc |
| diff --git a/chrome/browser/system_url_request_context_getter.cc b/chrome/browser/system_url_request_context_getter.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..64f747d62779013c571b5a2a238dd178016c03af |
| --- /dev/null |
| +++ b/chrome/browser/system_url_request_context_getter.cc |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/system_url_request_context_getter.h" |
| + |
| +#include "chrome/browser/io_thread.h" |
| + |
| +SystemURLRequestContextGetter::SystemURLRequestContextGetter( |
| + IOThread* io_thread) |
| + : io_thread_(io_thread), |
| + 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.
|
| +} |
| + |
| +SystemURLRequestContextGetter::~SystemURLRequestContextGetter() {} |
| + |
| +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.
|
| + return io_thread_->globals()->system_request_context; |
| +} |
| + |
| +scoped_refptr<base::MessageLoopProxy> |
| + SystemURLRequestContextGetter::GetIOMessageLoopProxy() const { |
| + return io_message_loop_proxy_; |
| +} |