| 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 "chrome/browser/download/all_download_item_notifier.h" | 5 #include "chrome/browser/download/all_download_item_notifier.h" | 
| 6 | 6 | 
| 7 AllDownloadItemNotifier::AllDownloadItemNotifier( | 7 AllDownloadItemNotifier::AllDownloadItemNotifier( | 
| 8     content::DownloadManager* manager, | 8     content::DownloadManager* manager, | 
| 9     AllDownloadItemNotifier::Observer* observer) | 9     AllDownloadItemNotifier::Observer* observer) | 
| 10     : manager_(manager), | 10     : manager_(manager), | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 50 void AllDownloadItemNotifier::OnDownloadUpdated( | 50 void AllDownloadItemNotifier::OnDownloadUpdated( | 
| 51     content::DownloadItem* item) { | 51     content::DownloadItem* item) { | 
| 52   observer_->OnDownloadUpdated(manager_, item); | 52   observer_->OnDownloadUpdated(manager_, item); | 
| 53 } | 53 } | 
| 54 | 54 | 
| 55 void AllDownloadItemNotifier::OnDownloadOpened( | 55 void AllDownloadItemNotifier::OnDownloadOpened( | 
| 56     content::DownloadItem* item) { | 56     content::DownloadItem* item) { | 
| 57   observer_->OnDownloadOpened(manager_, item); | 57   observer_->OnDownloadOpened(manager_, item); | 
| 58 } | 58 } | 
| 59 | 59 | 
|  | 60 void AllDownloadItemNotifier::OnDownloadShown( | 
|  | 61     content::DownloadItem* item) { | 
|  | 62   observer_->OnDownloadShown(manager_, item); | 
|  | 63 } | 
|  | 64 | 
| 60 void AllDownloadItemNotifier::OnDownloadRemoved( | 65 void AllDownloadItemNotifier::OnDownloadRemoved( | 
| 61     content::DownloadItem* item) { | 66     content::DownloadItem* item) { | 
| 62   observer_->OnDownloadRemoved(manager_, item); | 67   observer_->OnDownloadRemoved(manager_, item); | 
| 63 } | 68 } | 
| 64 | 69 | 
| 65 void AllDownloadItemNotifier::OnDownloadDestroyed( | 70 void AllDownloadItemNotifier::OnDownloadDestroyed( | 
| 66     content::DownloadItem* item) { | 71     content::DownloadItem* item) { | 
| 67   item->RemoveObserver(this); | 72   item->RemoveObserver(this); | 
| 68   observing_.erase(item); | 73   observing_.erase(item); | 
| 69 } | 74 } | 
| OLD | NEW | 
|---|