| 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/notifications/notification.h" | 5 #include "chrome/browser/notifications/notification.h" |
| 6 | 6 |
| 7 Notification::Notification( | 7 Notification::Notification( |
| 8 message_center::NotificationType type, | 8 message_center::NotificationType type, |
| 9 const base::string16& title, | 9 const base::string16& title, |
| 10 const base::string16& body, | 10 const base::string16& body, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 notifier_id, | 25 notifier_id, |
| 26 rich_notification_data, | 26 rich_notification_data, |
| 27 delegate), | 27 delegate), |
| 28 tag_(tag), | 28 tag_(tag), |
| 29 delegate_(delegate) {} | 29 delegate_(delegate) {} |
| 30 | 30 |
| 31 Notification::Notification(const std::string& id, | 31 Notification::Notification(const std::string& id, |
| 32 const Notification& notification) | 32 const Notification& notification) |
| 33 : message_center::Notification(id, notification), | 33 : message_center::Notification(id, notification), |
| 34 tag_(notification.tag()), | 34 tag_(notification.tag()), |
| 35 service_worker_scope_(notification.service_worker_scope()), |
| 35 delegate_(notification.delegate()) { | 36 delegate_(notification.delegate()) { |
| 36 } | 37 } |
| 37 | 38 |
| 38 Notification::Notification(const Notification& notification) | 39 Notification::Notification(const Notification& notification) |
| 39 : message_center::Notification(notification), | 40 : message_center::Notification(notification), |
| 40 tag_(notification.tag()), | 41 tag_(notification.tag()), |
| 42 service_worker_scope_(notification.service_worker_scope()), |
| 41 delegate_(notification.delegate()) {} | 43 delegate_(notification.delegate()) {} |
| 42 | 44 |
| 43 Notification::~Notification() {} | 45 Notification::~Notification() {} |
| 44 | 46 |
| 45 Notification& Notification::operator=(const Notification& notification) { | 47 Notification& Notification::operator=(const Notification& notification) { |
| 46 message_center::Notification::operator=(notification); | 48 message_center::Notification::operator=(notification); |
| 47 tag_ = notification.tag(); | 49 tag_ = notification.tag(); |
| 50 service_worker_scope_ = notification.service_worker_scope(); |
| 48 delegate_ = notification.delegate(); | 51 delegate_ = notification.delegate(); |
| 49 return *this; | 52 return *this; |
| 50 } | 53 } |
| OLD | NEW |