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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const SkBitmap& icon, 79 const SkBitmap& icon,
80 const content::PlatformNotificationData& notification_data) override; 80 const content::PlatformNotificationData& notification_data) override;
81 void ClosePersistentNotification( 81 void ClosePersistentNotification(
82 content::BrowserContext* browser_context, 82 content::BrowserContext* browser_context,
83 int64_t persistent_notification_id) override; 83 int64_t persistent_notification_id) override;
84 bool GetDisplayedPersistentNotifications( 84 bool GetDisplayedPersistentNotifications(
85 content::BrowserContext* browser_context, 85 content::BrowserContext* browser_context,
86 std::set<std::string>* displayed_notifications) override; 86 std::set<std::string>* displayed_notifications) override;
87 87
88 private: 88 private:
89 friend struct DefaultSingletonTraits<PlatformNotificationServiceImpl>; 89 friend struct base::DefaultSingletonTraits<PlatformNotificationServiceImpl>;
90 friend class PlatformNotificationServiceBrowserTest; 90 friend class PlatformNotificationServiceBrowserTest;
91 friend class PlatformNotificationServiceTest; 91 friend class PlatformNotificationServiceTest;
92 friend class PushMessagingBrowserTest; 92 friend class PushMessagingBrowserTest;
93 FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest, 93 FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest,
94 CreateNotificationFromData); 94 CreateNotificationFromData);
95 FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest, 95 FRIEND_TEST_ALL_PREFIXES(PlatformNotificationServiceTest,
96 DisplayNameForContextMessage); 96 DisplayNameForContextMessage);
97 97
98 PlatformNotificationServiceImpl(); 98 PlatformNotificationServiceImpl();
99 ~PlatformNotificationServiceImpl() override; 99 ~PlatformNotificationServiceImpl() override;
(...skipping 20 matching lines...) Expand all
120 NotificationUIManager* notification_ui_manager_for_tests_; 120 NotificationUIManager* notification_ui_manager_for_tests_;
121 121
122 // Mapping between a persistent notification id and the id of the associated 122 // Mapping between a persistent notification id and the id of the associated
123 // message_center::Notification object. Must only be used on the UI thread. 123 // message_center::Notification object. Must only be used on the UI thread.
124 std::map<int64_t, std::string> persistent_notifications_; 124 std::map<int64_t, std::string> persistent_notifications_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl); 126 DISALLOW_COPY_AND_ASSIGN(PlatformNotificationServiceImpl);
127 }; 127 };
128 128
129 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_ 129 #endif // CHROME_BROWSER_NOTIFICATIONS_PLATFORM_NOTIFICATION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698