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

Side by Side Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service.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 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Add a notification to our list. This takes ownership of the pointer. 91 // Add a notification to our list. This takes ownership of the pointer.
92 void Add(scoped_ptr<notifier::SyncedNotification> notification); 92 void Add(scoped_ptr<notifier::SyncedNotification> notification);
93 93
94 // Display a notification in the notification center (eventually). 94 // Display a notification in the notification center (eventually).
95 void Display(notifier::SyncedNotification* notification); 95 void Display(notifier::SyncedNotification* notification);
96 96
97 // Back pointer to the owning profile. 97 // Back pointer to the owning profile.
98 Profile* const profile_; 98 Profile* const profile_;
99 NotificationUIManager* const notification_manager_; 99 NotificationUIManager* const notification_manager_;
100 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; 100 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
101 std::vector<std::string> enabled_sending_services_;
101 static bool avoid_bitmap_fetching_for_test_; 102 static bool avoid_bitmap_fetching_for_test_;
102 103
103 // TODO(petewil): Consider whether a map would better suit our data. 104 // TODO(petewil): Consider whether a map would better suit our data.
104 // If there are many entries, lookup time may trump locality of reference. 105 // If there are many entries, lookup time may trump locality of reference.
105 ScopedVector<notifier::SyncedNotification> notification_data_; 106 ScopedVector<notifier::SyncedNotification> notification_data_;
106 107
107 friend class ChromeNotifierServiceTest; 108 friend class ChromeNotifierServiceTest;
108 109
109 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierService); 110 DISALLOW_COPY_AND_ASSIGN(ChromeNotifierService);
110 }; 111 };
111 112
112 } // namespace notifier 113 } // namespace notifier
113 114
114 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_ 115 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_CHROME_NOTIFIER_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698