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

Side by Side Diff: content/browser/download/save_package.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 "content/browser/download/save_package.h" 5 #include "content/browser/download/save_package.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 21 matching lines...) Expand all
32 #include "content/public/browser/browser_context.h" 32 #include "content/public/browser/browser_context.h"
33 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/content_browser_client.h" 34 #include "content/public/browser/content_browser_client.h"
35 #include "content/public/browser/download_manager_delegate.h" 35 #include "content/public/browser/download_manager_delegate.h"
36 #include "content/public/browser/navigation_entry.h" 36 #include "content/public/browser/navigation_entry.h"
37 #include "content/public/browser/notification_service.h" 37 #include "content/public/browser/notification_service.h"
38 #include "content/public/browser/notification_types.h" 38 #include "content/public/browser/notification_types.h"
39 #include "content/public/browser/resource_context.h" 39 #include "content/public/browser/resource_context.h"
40 #include "content/public/browser/web_contents.h" 40 #include "content/public/browser/web_contents.h"
41 #include "content/public/common/url_constants.h" 41 #include "content/public/common/url_constants.h"
42 #include "net/base/filename_util.h"
42 #include "net/base/io_buffer.h" 43 #include "net/base/io_buffer.h"
43 #include "net/base/mime_util.h" 44 #include "net/base/mime_util.h"
44 #include "net/base/net_util.h"
45 #include "net/url_request/url_request_context.h" 45 #include "net/url_request/url_request_context.h"
46 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" 46 #include "third_party/WebKit/public/web/WebPageSerializerClient.h"
47 47
48 using base::Time; 48 using base::Time;
49 using blink::WebPageSerializerClient; 49 using blink::WebPageSerializerClient;
50 50
51 namespace content { 51 namespace content {
52 namespace { 52 namespace {
53 53
54 // A counter for uniquely identifying each save package. 54 // A counter for uniquely identifying each save package.
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 1444
1445 void SavePackage::FinalizeDownloadEntry() { 1445 void SavePackage::FinalizeDownloadEntry() {
1446 DCHECK(download_); 1446 DCHECK(download_);
1447 DCHECK(download_manager_); 1447 DCHECK(download_manager_);
1448 1448
1449 download_manager_->OnSavePackageSuccessfullyFinished(download_); 1449 download_manager_->OnSavePackageSuccessfullyFinished(download_);
1450 StopObservation(); 1450 StopObservation();
1451 } 1451 }
1452 1452
1453 } // namespace content 1453 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_file_manager.cc ('k') | content/browser/renderer_host/render_view_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698