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

Side by Side Diff: ui/message_center/notifier_settings.h

Issue 787193002: Move logic for displaying notifications to the ProfileNotificationServiceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-total
Patch Set: tests Created 6 years 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) 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_NOTIFIER_SETTINGS_H_ 5 #ifndef UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_
6 #define UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ 6 #define UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/gfx/image/image.h" 12 #include "ui/gfx/image/image.h"
13 #include "ui/message_center/message_center_export.h" 13 #include "ui/message_center/message_center_export.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 class MessageCenterNotificationsTest; 16 class MessageCenterNotificationsTest;
17 class MessageCenterTrayBridgeTest; 17 class MessageCenterTrayBridgeTest;
18 class StubNotificationUIManager;
19 18
20 namespace ash { 19 namespace ash {
21 class WebNotificationTrayTest; 20 class WebNotificationTrayTest;
22 } 21 }
23 22
24 namespace message_center { 23 namespace message_center {
25 namespace test { 24 namespace test {
26 class MessagePopupCollectionTest; 25 class MessagePopupCollectionTest;
27 } 26 }
28 27
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 std::string profile_id; 67 std::string profile_id;
69 68
70 private: 69 private:
71 friend class MessageCenterNotificationManagerTest; 70 friend class MessageCenterNotificationManagerTest;
72 friend class MessageCenterTrayTest; 71 friend class MessageCenterTrayTest;
73 friend class NotificationControllerTest; 72 friend class NotificationControllerTest;
74 friend class PopupCollectionTest; 73 friend class PopupCollectionTest;
75 friend class TrayViewControllerTest; 74 friend class TrayViewControllerTest;
76 friend class ::MessageCenterNotificationsTest; 75 friend class ::MessageCenterNotificationsTest;
77 friend class ::MessageCenterTrayBridgeTest; 76 friend class ::MessageCenterTrayBridgeTest;
78 friend class ::StubNotificationUIManager;
79 friend class ash::WebNotificationTrayTest; 77 friend class ash::WebNotificationTrayTest;
80 friend class test::MessagePopupCollectionTest; 78 friend class test::MessagePopupCollectionTest;
81 FRIEND_TEST_ALL_PREFIXES(PopupControllerTest, Creation); 79 FRIEND_TEST_ALL_PREFIXES(PopupControllerTest, Creation);
82 FRIEND_TEST_ALL_PREFIXES(NotificationListTest, UnreadCountNoNegative); 80 FRIEND_TEST_ALL_PREFIXES(NotificationListTest, UnreadCountNoNegative);
83 FRIEND_TEST_ALL_PREFIXES(NotificationListTest, TestHasNotificationOfType); 81 FRIEND_TEST_ALL_PREFIXES(NotificationListTest, TestHasNotificationOfType);
84 82
85 // The default constructor which doesn't specify the notifier. Used for tests. 83 // The default constructor which doesn't specify the notifier. Used for tests.
86 NotifierId(); 84 NotifierId();
87 }; 85 };
88 86
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 194
197 // Called upon request for more information about a particular notifier. 195 // Called upon request for more information about a particular notifier.
198 virtual void OnNotifierAdvancedSettingsRequested( 196 virtual void OnNotifierAdvancedSettingsRequested(
199 const NotifierId& notifier_id, 197 const NotifierId& notifier_id,
200 const std::string* notification_id) = 0; 198 const std::string* notification_id) = 0;
201 }; 199 };
202 200
203 } // namespace message_center 201 } // namespace message_center
204 202
205 #endif // UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_ 203 #endif // UI_MESSAGE_CENTER_NOTIFIER_SETTINGS_H_
OLDNEW
« chrome/browser/notifications/notification_test_util.h ('K') | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698