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

Side by Side Diff: chrome/browser/notifications/sync_notifier/synced_notification.h

Issue 19056002: Enable and disable Synced Notification Client Services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enable first notification service: remove bitmaps Created 7 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 | Annotate | Revision Log
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 // This class represents the data for a single Synced Notification. 5 // This class represents the data for a single Synced Notification.
6 // It should map 1-1 to all the data in synced_notification_sepcifics.proto, 6 // It should map 1-1 to all the data in synced_notification_sepcifics.proto,
7 // and the data and render protobufs that the specifics protobuf contains. 7 // and the data and render protobufs that the specifics protobuf contains.
8 8
9 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_ 9 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_
10 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_ 10 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 std::string GetDefaultDestinationTitle() const; 64 std::string GetDefaultDestinationTitle() const;
65 GURL GetDefaultDestinationIconUrl() const; 65 GURL GetDefaultDestinationIconUrl() const;
66 GURL GetDefaultDestinationUrl() const; 66 GURL GetDefaultDestinationUrl() const;
67 std::string GetButtonTitle(unsigned int which_button) const; 67 std::string GetButtonTitle(unsigned int which_button) const;
68 GURL GetButtonIconUrl(unsigned int which_button) const; 68 GURL GetButtonIconUrl(unsigned int which_button) const;
69 GURL GetButtonUrl(unsigned int which_button) const; 69 GURL GetButtonUrl(unsigned int which_button) const;
70 size_t GetNotificationCount() const; 70 size_t GetNotificationCount() const;
71 size_t GetButtonCount() const; 71 size_t GetButtonCount() const;
72 std::string GetContainedNotificationTitle(int index) const; 72 std::string GetContainedNotificationTitle(int index) const;
73 std::string GetContainedNotificationMessage(int index) const; 73 std::string GetContainedNotificationMessage(int index) const;
74 std::string GetSendingServiceId() const;
74 75
75 76
76 bool EqualsIgnoringReadState(const SyncedNotification& other) const; 77 bool EqualsIgnoringReadState(const SyncedNotification& other) const;
77 78
78 void NotificationHasBeenDismissed(); 79 void NotificationHasBeenDismissed();
79 80
80 // Fill up the queue of bitmaps to fetch. 81 // Fill up the queue of bitmaps to fetch.
81 void QueueBitmapFetchJobs(NotificationUIManager* notification_manager, 82 void QueueBitmapFetchJobs(NotificationUIManager* notification_manager,
82 ChromeNotifierService* notifier_service, 83 ChromeNotifierService* notifier_service,
83 Profile* profile); 84 Profile* profile);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, AddBitmapToFetchQueueTest); 119 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, AddBitmapToFetchQueueTest);
119 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, OnFetchCompleteTest); 120 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, OnFetchCompleteTest);
120 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, QueueBitmapFetchJobsTest); 121 FRIEND_TEST_ALL_PREFIXES(SyncedNotificationTest, QueueBitmapFetchJobsTest);
121 122
122 DISALLOW_COPY_AND_ASSIGN(SyncedNotification); 123 DISALLOW_COPY_AND_ASSIGN(SyncedNotification);
123 }; 124 };
124 125
125 } // namespace notifier 126 } // namespace notifier
126 127
127 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_ 128 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNCED_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698