| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser_process.h" | 5 #include "chrome/browser/browser_process.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" | |
| 8 | |
| 9 BrowserProcess* g_browser_process = NULL; | 7 BrowserProcess* g_browser_process = NULL; |
| 10 | 8 |
| 11 BrowserProcess::BrowserProcess() {} | 9 BrowserProcess::BrowserProcess() {} |
| 12 | 10 |
| 13 BrowserProcess::~BrowserProcess() {} | 11 BrowserProcess::~BrowserProcess() {} |
| 14 | |
| 15 DownloadRequestLimiter* BrowserProcess::download_request_limiter() { | |
| 16 ResourceDispatcherHost* rdh = resource_dispatcher_host(); | |
| 17 return rdh ? rdh->download_request_limiter() : NULL; | |
| 18 } | |
| OLD | NEW |