| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::OnDownloadRemoved( | 60 void AllDownloadItemNotifier::OnDownloadRemoved( |
| 61 content::DownloadItem* item) { | 61 content::DownloadItem* item) { |
| 62 observer_->OnDownloadRemoved(manager_, item); | 62 observer_->OnDownloadRemoved(manager_, item); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void AllDownloadItemNotifier::OnDownloadShown( |
| 66 content::DownloadItem* item) { |
| 67 observer_->OnDownloadShown(manager_, item); |
| 68 } |
| 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 |