| 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 "content/browser/download/download_request_handle.h" | 5 #include "content/browser/download/download_request_handle.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 10 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 10 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 11 #include "content/browser/tab_contents/tab_contents.h" | 11 #include "content/browser/tab_contents/tab_contents.h" |
| 12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 | 14 |
| 15 using content::BrowserThread; | 15 using content::BrowserThread; |
| 16 using content::DownloadManager; | 16 using content::DownloadManager; |
| 17 using content::RenderViewHostImpl; |
| 17 | 18 |
| 18 // IO Thread indirections to resource dispatcher host. | 19 // IO Thread indirections to resource dispatcher host. |
| 19 // Provided as targets for PostTask from within this object | 20 // Provided as targets for PostTask from within this object |
| 20 // only. | 21 // only. |
| 21 static void ResourceDispatcherHostPauseRequest( | 22 static void ResourceDispatcherHostPauseRequest( |
| 22 ResourceDispatcherHost* rdh, | 23 ResourceDispatcherHost* rdh, |
| 23 int process_unique_id, | 24 int process_unique_id, |
| 24 int request_id, | 25 int request_id, |
| 25 bool pause) { | 26 bool pause) { |
| 26 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 std::string DownloadRequestHandle::DebugString() const { | 116 std::string DownloadRequestHandle::DebugString() const { |
| 116 return base::StringPrintf("{" | 117 return base::StringPrintf("{" |
| 117 " child_id = %d" | 118 " child_id = %d" |
| 118 " render_view_id = %d" | 119 " render_view_id = %d" |
| 119 " request_id = %d" | 120 " request_id = %d" |
| 120 "}", | 121 "}", |
| 121 child_id_, | 122 child_id_, |
| 122 render_view_id_, | 123 render_view_id_, |
| 123 request_id_); | 124 request_id_); |
| 124 } | 125 } |
| OLD | NEW |