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

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

Issue 10915180: Make DownloadHistory observe manager, items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r165669 Created 8 years, 1 month 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_path.h" 10 #include "base/file_path.h"
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 NotificationService::current()->Notify( 1385 NotificationService::current()->Notify(
1386 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, 1386 NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED,
1387 // We use the DownloadManager as the source as that's a 1387 // We use the DownloadManager as the source as that's a
1388 // central SavePackage related location that observers can 1388 // central SavePackage related location that observers can
1389 // get to if they want to wait for notifications for a 1389 // get to if they want to wait for notifications for a
1390 // particular BrowserContext. Alternatively, we could make 1390 // particular BrowserContext. Alternatively, we could make
1391 // it come from the WebContents, which would be more specific 1391 // it come from the WebContents, which would be more specific
1392 // but less useful to (current) customers. 1392 // but less useful to (current) customers.
1393 Source<DownloadManager>(download_manager_), 1393 Source<DownloadManager>(download_manager_),
1394 Details<DownloadItem>(download_)); 1394 Details<DownloadItem>(download_));
1395 download_manager_->SavePageDownloadFinished(download_);
1396 StopObservation(); 1395 StopObservation();
1397 } 1396 }
1398 1397
1399 } // namespace content 1398 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698