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

Side by Side Diff: chrome/browser/notifications/notification.cc

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_platform_bridge_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698