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

Side by Side Diff: chrome/browser/download/download_file_manager.cc

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « chrome/browser/download/download_file.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/download/download_file_manager.h" 5 #include "chrome/browser/download/download_file_manager.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "chrome/browser/browser_thread.h"
14 #include "chrome/browser/download/download_manager.h" 13 #include "chrome/browser/download/download_manager.h"
15 #include "chrome/browser/download/download_util.h" 14 #include "chrome/browser/download/download_util.h"
16 #include "chrome/browser/history/download_create_info.h" 15 #include "chrome/browser/history/download_create_info.h"
17 #include "chrome/browser/net/chrome_url_request_context.h" 16 #include "chrome/browser/net/chrome_url_request_context.h"
18 #include "chrome/browser/platform_util.h" 17 #include "chrome/browser/platform_util.h"
19 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
21 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 19 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
22 #include "chrome/browser/tab_contents/tab_util.h" 20 #include "chrome/browser/tab_contents/tab_util.h"
23 #include "chrome/browser/tab_contents/tab_contents.h" 21 #include "content/browser/browser_thread.h"
22 #include "content/browser/renderer_host/resource_dispatcher_host.h"
23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "net/base/io_buffer.h" 25 #include "net/base/io_buffer.h"
26 26
27 namespace { 27 namespace {
28 28
29 // Throttle updates to the UI thread so that a fast moving download doesn't 29 // Throttle updates to the UI thread so that a fast moving download doesn't
30 // cause it to become unresponsive (in milliseconds). 30 // cause it to become unresponsive (in milliseconds).
31 const int kUpdatePeriodMs = 500; 31 const int kUpdatePeriodMs = 500;
32 32
33 DownloadManager* DownloadManagerForRenderViewHost(int render_process_id, 33 DownloadManager* DownloadManagerForRenderViewHost(int render_process_id,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 DownloadFile* download_file = downloads_[id]; 377 DownloadFile* download_file = downloads_[id];
378 378
379 downloads_.erase(id); 379 downloads_.erase(id);
380 380
381 if (ContainsKey(downloads_with_final_name_, id)) 381 if (ContainsKey(downloads_with_final_name_, id))
382 downloads_with_final_name_.erase(id); 382 downloads_with_final_name_.erase(id);
383 383
384 delete download_file; 384 delete download_file;
385 } 385 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_file.cc ('k') | chrome/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698