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

Unified 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 side-by-side diff with in-line comments
Download patch
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_;
+}

Powered by Google App Engine
This is Rietveld 408576698