OLD | NEW |
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 "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/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "content/browser/download/download_manager.h" | 26 #include "content/browser/download/download_manager.h" |
27 #include "content/browser/download/download_manager_delegate.h" | 27 #include "content/browser/download/download_manager_delegate.h" |
28 #include "content/browser/download/save_file.h" | 28 #include "content/browser/download/save_file.h" |
29 #include "content/browser/download/save_file_manager.h" | 29 #include "content/browser/download/save_file_manager.h" |
30 #include "content/browser/download/save_item.h" | 30 #include "content/browser/download/save_item.h" |
31 #include "content/browser/renderer_host/render_process_host.h" | 31 #include "content/browser/renderer_host/render_process_host.h" |
32 #include "content/browser/renderer_host/render_view_host.h" | 32 #include "content/browser/renderer_host/render_view_host.h" |
33 #include "content/browser/renderer_host/render_view_host_delegate.h" | 33 #include "content/browser/renderer_host/render_view_host_delegate.h" |
34 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 34 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
35 #include "content/browser/tab_contents/tab_contents.h" | 35 #include "content/browser/tab_contents/tab_contents.h" |
36 #include "content/common/url_constants.h" | |
37 #include "content/common/view_messages.h" | 36 #include "content/common/view_messages.h" |
| 37 #include "content/public/common/url_constants.h" |
38 #include "net/base/io_buffer.h" | 38 #include "net/base/io_buffer.h" |
39 #include "net/base/mime_util.h" | 39 #include "net/base/mime_util.h" |
40 #include "net/base/net_util.h" | 40 #include "net/base/net_util.h" |
41 #include "net/url_request/url_request_context.h" | 41 #include "net/url_request/url_request_context.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
43 | 43 |
44 using base::Time; | 44 using base::Time; |
45 using WebKit::WebPageSerializerClient; | 45 using WebKit::WebPageSerializerClient; |
46 | 46 |
47 namespace { | 47 namespace { |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 StopObservation(); | 1277 StopObservation(); |
1278 } | 1278 } |
1279 | 1279 |
1280 void SavePackage::FinalizeDownloadEntry() { | 1280 void SavePackage::FinalizeDownloadEntry() { |
1281 DCHECK(download_); | 1281 DCHECK(download_); |
1282 DCHECK(download_manager_); | 1282 DCHECK(download_manager_); |
1283 | 1283 |
1284 download_manager_->SavePageDownloadFinished(download_); | 1284 download_manager_->SavePageDownloadFinished(download_); |
1285 StopObservation(); | 1285 StopObservation(); |
1286 } | 1286 } |
OLD | NEW |