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

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

Issue 12717010: Widen Data Pipes and newer protobufs (Closed) Base URL: http://git.chromium.org/chromium/src.git@newProtobufs
Patch Set: Synced Notifications newer protobufs - fix mac and linux unit tests Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 23 matching lines...) Expand all
34 // creates an HTML representation using a data: URL for display. 34 // creates an HTML representation using a data: URL for display.
35 Notification(const GURL& origin_url, 35 Notification(const GURL& origin_url,
36 const GURL& icon_url, 36 const GURL& icon_url,
37 const string16& title, 37 const string16& title,
38 const string16& body, 38 const string16& body,
39 WebKit::WebTextDirection dir, 39 WebKit::WebTextDirection dir,
40 const string16& display_source, 40 const string16& display_source,
41 const string16& replace_id, 41 const string16& replace_id,
42 NotificationDelegate* delegate); 42 NotificationDelegate* delegate);
43 43
44 // Initializes a notification with a given type. Takes ownership of 44 // Initializes a notification with a given type. Makes a deep copy of
45 // optional_fields. 45 // optional_fields.
46 Notification(message_center::NotificationType type, 46 Notification(message_center::NotificationType type,
47 const GURL& origin_url, 47 const GURL& origin_url,
48 const GURL& icon_url, 48 const GURL& icon_url,
49 const string16& title, 49 const string16& title,
50 const string16& body, 50 const string16& body,
51 WebKit::WebTextDirection dir, 51 WebKit::WebTextDirection dir,
52 const string16& display_source, 52 const string16& display_source,
53 const string16& replace_id, 53 const string16& replace_id,
54 const DictionaryValue* optional_fields, 54 const DictionaryValue* optional_fields,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 string16 replace_id_; 150 string16 replace_id_;
151 151
152 scoped_ptr<DictionaryValue> optional_fields_; 152 scoped_ptr<DictionaryValue> optional_fields_;
153 153
154 // A proxy object that allows access back to the JavaScript object that 154 // A proxy object that allows access back to the JavaScript object that
155 // represents the notification, for firing events. 155 // represents the notification, for firing events.
156 scoped_refptr<NotificationDelegate> delegate_; 156 scoped_refptr<NotificationDelegate> delegate_;
157 }; 157 };
158 158
159 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 159 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698