OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_H_ |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFICATION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const base::string16& title() const { return title_; } | 122 const base::string16& title() const { return title_; } |
123 void set_title(const base::string16& title) { title_ = title; } | 123 void set_title(const base::string16& title) { title_ = title; } |
124 | 124 |
125 const base::string16& message() const { return message_; } | 125 const base::string16& message() const { return message_; } |
126 void set_message(const base::string16& message) { message_ = message; } | 126 void set_message(const base::string16& message) { message_ = message; } |
127 | 127 |
128 // The origin URL of the script which requested the notification. | 128 // The origin URL of the script which requested the notification. |
129 // Can be empty if the notification is requested by an extension or | 129 // Can be empty if the notification is requested by an extension or |
130 // Chrome app. | 130 // Chrome app. |
131 const GURL& origin_url() const { return origin_url_; } | 131 const GURL& origin_url() const { return origin_url_; } |
| 132 void set_origin_url(const GURL& origin_url) { origin_url_ = origin_url; } |
132 | 133 |
133 // A display string for the source of the notification. | 134 // A display string for the source of the notification. |
134 const base::string16& display_source() const { return display_source_; } | 135 const base::string16& display_source() const { return display_source_; } |
135 | 136 |
136 const NotifierId& notifier_id() const { return notifier_id_; } | 137 const NotifierId& notifier_id() const { return notifier_id_; } |
137 | 138 |
138 void set_profile_id(const std::string& profile_id) { | 139 void set_profile_id(const std::string& profile_id) { |
139 notifier_id_.profile_id = profile_id; | 140 notifier_id_.profile_id = profile_id; |
140 } | 141 } |
141 | 142 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 scoped_refptr<NotificationDelegate> delegate_; | 310 scoped_refptr<NotificationDelegate> delegate_; |
310 | 311 |
311 #if !defined(OS_IOS) | 312 #if !defined(OS_IOS) |
312 friend struct mojo::StructTraits<mojom::NotificationDataView, Notification>; | 313 friend struct mojo::StructTraits<mojom::NotificationDataView, Notification>; |
313 #endif | 314 #endif |
314 }; | 315 }; |
315 | 316 |
316 } // namespace message_center | 317 } // namespace message_center |
317 | 318 |
318 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_ | 319 #endif // UI_MESSAGE_CENTER_NOTIFICATION_H_ |
OLD | NEW |