OLD | NEW |
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_path.h" | 10 #include "base/file_path.h" |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1393 NotificationService::current()->Notify( | 1393 NotificationService::current()->Notify( |
1394 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, | 1394 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, |
1395 // We use the DownloadManager as the source as that's a | 1395 // We use the DownloadManager as the source as that's a |
1396 // central SavePackage related location that observers can | 1396 // central SavePackage related location that observers can |
1397 // get to if they want to wait for notifications for a | 1397 // get to if they want to wait for notifications for a |
1398 // particular BrowserContext. Alternatively, we could make | 1398 // particular BrowserContext. Alternatively, we could make |
1399 // it come from the WebContents, which would be more specific | 1399 // it come from the WebContents, which would be more specific |
1400 // but less useful to (current) customers. | 1400 // but less useful to (current) customers. |
1401 Source<DownloadManager>(download_manager_), | 1401 Source<DownloadManager>(download_manager_), |
1402 Details<DownloadItem>(download_)); | 1402 Details<DownloadItem>(download_)); |
1403 download_manager_->SavePageDownloadFinished(download_); | |
1404 StopObservation(); | 1403 StopObservation(); |
1405 } | 1404 } |
1406 | 1405 |
1407 } // namespace content | 1406 } // namespace content |
OLD | NEW |