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

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

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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) 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 "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/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "content/browser/download/save_file.h" 15 #include "content/browser/download/save_file.h"
16 #include "content/browser/download/save_package.h" 16 #include "content/browser/download/save_package.h"
17 #include "content/browser/loader/resource_dispatcher_host_impl.h" 17 #include "content/browser/loader/resource_dispatcher_host_impl.h"
18 #include "content/browser/renderer_host/render_view_host_impl.h" 18 #include "content/browser/renderer_host/render_view_host_impl.h"
19 #include "content/browser/web_contents/web_contents_impl.h" 19 #include "content/browser/web_contents/web_contents_impl.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "net/base/filename_util.h"
21 #include "net/base/io_buffer.h" 22 #include "net/base/io_buffer.h"
22 #include "net/base/net_util.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 24
25 namespace content { 25 namespace content {
26 26
27 SaveFileManager::SaveFileManager() 27 SaveFileManager::SaveFileManager()
28 : next_id_(0) { 28 : next_id_(0) {
29 } 29 }
30 30
31 SaveFileManager::~SaveFileManager() { 31 SaveFileManager::~SaveFileManager() {
32 // Check for clean shutdown. 32 // Check for clean shutdown.
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 SaveFile* save_file = it->second; 524 SaveFile* save_file = it->second;
525 DCHECK(!save_file->InProgress()); 525 DCHECK(!save_file->InProgress());
526 base::DeleteFile(save_file->FullPath(), false); 526 base::DeleteFile(save_file->FullPath(), false);
527 delete save_file; 527 delete save_file;
528 save_file_map_.erase(it); 528 save_file_map_.erase(it);
529 } 529 }
530 } 530 }
531 } 531 }
532 532
533 } // namespace content 533 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_impl.cc ('k') | content/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698