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

Side by Side Diff: content/browser/download/save_file_manager.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "content/browser/download/save_file_manager.h" 7 #include "content/browser/download/save_file_manager.h"
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stl_util-inl.h" 11 #include "base/stl_util.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "chrome/browser/platform_util.h" 15 #include "chrome/browser/platform_util.h"
16 #include "chrome/browser/tab_contents/tab_util.h" 16 #include "chrome/browser/tab_contents/tab_util.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "content/browser/browser_thread.h" 18 #include "content/browser/browser_thread.h"
19 #include "content/browser/download/save_file.h" 19 #include "content/browser/download/save_file.h"
20 #include "content/browser/download/save_package.h" 20 #include "content/browser/download/save_package.h"
21 #include "content/browser/renderer_host/resource_dispatcher_host.h" 21 #include "content/browser/renderer_host/resource_dispatcher_host.h"
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 SaveFileMap::iterator it = save_file_map_.find(*i); 527 SaveFileMap::iterator it = save_file_map_.find(*i);
528 if (it != save_file_map_.end()) { 528 if (it != save_file_map_.end()) {
529 SaveFile* save_file = it->second; 529 SaveFile* save_file = it->second;
530 DCHECK(!save_file->in_progress()); 530 DCHECK(!save_file->in_progress());
531 file_util::Delete(save_file->full_path(), false); 531 file_util::Delete(save_file->full_path(), false);
532 delete save_file; 532 delete save_file;
533 save_file_map_.erase(it); 533 save_file_map_.erase(it);
534 } 534 }
535 } 535 }
536 } 536 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698