| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/notification/download_notification.h" | 5 #include "chrome/browser/download/notification/download_notification.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "chrome/browser/download/notification/download_notification_manager.h" | 8 #include "chrome/browser/download/notification/download_notification_manager.h" |
| 8 | 9 |
| 9 namespace { | 10 namespace { |
| 10 | 11 |
| 11 /////////////////////////////////////////////////////////////////////////////// | 12 /////////////////////////////////////////////////////////////////////////////// |
| 12 // NotificationWatcher class: | 13 // NotificationWatcher class: |
| 13 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
| 14 | 15 |
| 15 class NotificationWatcher : public NotificationDelegate { | 16 class NotificationWatcher : public NotificationDelegate { |
| 16 public: | 17 public: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 NotificationDelegate* DownloadNotification::watcher() const { | 69 NotificationDelegate* DownloadNotification::watcher() const { |
| 69 return watcher_.get(); | 70 return watcher_.get(); |
| 70 } | 71 } |
| 71 | 72 |
| 72 void DownloadNotification::InvokeUnsafeForceNotificationFlush( | 73 void DownloadNotification::InvokeUnsafeForceNotificationFlush( |
| 73 message_center::MessageCenter* message_center, const std::string& id) { | 74 message_center::MessageCenter* message_center, const std::string& id) { |
| 74 DCHECK(message_center); | 75 DCHECK(message_center); |
| 75 message_center->ForceNotificationFlush(id); | 76 message_center->ForceNotificationFlush(id); |
| 76 } | 77 } |
| OLD | NEW |