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

Unified Diff: chrome/browser/download/all_download_item_notifier.cc

Issue 10974009: Rename HyperbolicDownloadItemNotifer -> AllDownloadItemNotifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/all_download_item_notifier.cc
diff --git a/chrome/browser/download/hyperbolic_download_item_notifier.cc b/chrome/browser/download/all_download_item_notifier.cc
similarity index 71%
rename from chrome/browser/download/hyperbolic_download_item_notifier.cc
rename to chrome/browser/download/all_download_item_notifier.cc
index 782d7c05fec243f9e1dc448cba8eedbee4b70f64..a0b3a02eff5b863d69f114a779f57b962bdfa5d3 100644
--- a/chrome/browser/download/hyperbolic_download_item_notifier.cc
+++ b/chrome/browser/download/all_download_item_notifier.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/download/hyperbolic_download_item_notifier.h"
+#include "chrome/browser/download/all_download_item_notifier.h"
-HyperbolicDownloadItemNotifier::HyperbolicDownloadItemNotifier(
+AllDownloadItemNotifier::AllDownloadItemNotifier(
content::DownloadManager* manager,
- HyperbolicDownloadItemNotifier::Observer* observer)
+ AllDownloadItemNotifier::Observer* observer)
: manager_(manager),
observer_(observer) {
DCHECK(observer_);
@@ -21,7 +21,7 @@ HyperbolicDownloadItemNotifier::HyperbolicDownloadItemNotifier(
}
}
-HyperbolicDownloadItemNotifier::~HyperbolicDownloadItemNotifier() {
+AllDownloadItemNotifier::~AllDownloadItemNotifier() {
if (manager_)
manager_->RemoveObserver(this);
for (std::set<content::DownloadItem*>::const_iterator it =
@@ -32,14 +32,14 @@ HyperbolicDownloadItemNotifier::~HyperbolicDownloadItemNotifier() {
observing_.clear();
}
-void HyperbolicDownloadItemNotifier::ManagerGoingDown(
+void AllDownloadItemNotifier::ManagerGoingDown(
content::DownloadManager* manager) {
DCHECK_EQ(manager_, manager);
manager_->RemoveObserver(this);
manager_ = NULL;
}
-void HyperbolicDownloadItemNotifier::OnDownloadCreated(
+void AllDownloadItemNotifier::OnDownloadCreated(
content::DownloadManager* manager,
content::DownloadItem* item) {
item->AddObserver(this);
@@ -47,22 +47,22 @@ void HyperbolicDownloadItemNotifier::OnDownloadCreated(
observer_->OnDownloadCreated(manager, item);
}
-void HyperbolicDownloadItemNotifier::OnDownloadUpdated(
+void AllDownloadItemNotifier::OnDownloadUpdated(
content::DownloadItem* item) {
observer_->OnDownloadUpdated(manager_, item);
}
-void HyperbolicDownloadItemNotifier::OnDownloadOpened(
+void AllDownloadItemNotifier::OnDownloadOpened(
content::DownloadItem* item) {
observer_->OnDownloadOpened(manager_, item);
}
-void HyperbolicDownloadItemNotifier::OnDownloadRemoved(
+void AllDownloadItemNotifier::OnDownloadRemoved(
content::DownloadItem* item) {
observer_->OnDownloadRemoved(manager_, item);
}
-void HyperbolicDownloadItemNotifier::OnDownloadDestroyed(
+void AllDownloadItemNotifier::OnDownloadDestroyed(
content::DownloadItem* item) {
item->RemoveObserver(this);
observing_.erase(item);
« no previous file with comments | « chrome/browser/download/all_download_item_notifier.h ('k') | chrome/browser/download/all_download_item_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698