Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: chrome/browser/system_url_request_context_getter.cc

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Continued Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698