| 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 "chrome/browser/net/chrome_url_request_context.h" | 5 #include "chrome/browser/net/chrome_url_request_context.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // ChromeURLRequestContext | 261 // ChromeURLRequestContext |
| 262 // ---------------------------------------------------------------------------- | 262 // ---------------------------------------------------------------------------- |
| 263 | 263 |
| 264 ChromeURLRequestContext::ChromeURLRequestContext() | 264 ChromeURLRequestContext::ChromeURLRequestContext() |
| 265 : weak_factory_(this) { | 265 : weak_factory_(this) { |
| 266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 266 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 267 } | 267 } |
| 268 | 268 |
| 269 ChromeURLRequestContext::~ChromeURLRequestContext() { | 269 ChromeURLRequestContext::~ChromeURLRequestContext() { |
| 270 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 270 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 271 AssertNoURLRequests(); |
| 271 } | 272 } |
| 272 | 273 |
| 273 void ChromeURLRequestContext::CopyFrom(ChromeURLRequestContext* other) { | 274 void ChromeURLRequestContext::CopyFrom(ChromeURLRequestContext* other) { |
| 274 URLRequestContext::CopyFrom(other); | 275 URLRequestContext::CopyFrom(other); |
| 275 | 276 |
| 276 // Copy ChromeURLRequestContext parameters. | 277 // Copy ChromeURLRequestContext parameters. |
| 277 } | 278 } |
| OLD | NEW |