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

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

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: comments Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PLATFORM_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 // Fills in |notifications| with a set of notification ids currently being 38 // Fills in |notifications| with a set of notification ids currently being
39 // displayed for a given profile. 39 // displayed for a given profile.
40 // The return value expresses whether the underlying platform has the 40 // The return value expresses whether the underlying platform has the
41 // capability to provide displayed notifications so the empty set 41 // capability to provide displayed notifications so the empty set
42 // can be disambiguated. 42 // can be disambiguated.
43 virtual bool GetDisplayed(const std::string& profile_id, 43 virtual bool GetDisplayed(const std::string& profile_id,
44 bool incognito, 44 bool incognito,
45 std::set<std::string>* notification_ids) const = 0; 45 std::set<std::string>* notification_ids) const = 0;
46 46
47 // Temporary method while the refactor is finished. It denotes whether
48 // the notifications will be shown by chrome itself or by the OS.
49 // It is needed while migrating MacOSX and Windows to their respective
50 // notification centers since the decision is made at runtime via flags.
51 virtual bool SupportsNotificationCenter() const = 0;
52
53 protected: 47 protected:
54 NotificationPlatformBridge() {} 48 NotificationPlatformBridge() {}
55 49
56 private: 50 private:
57 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridge); 51 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridge);
58 }; 52 };
59 53
60 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_H_ 54 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698