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

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

Issue 2095223002: Refactor notification operation functionality out of PNS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
7
8 // A series of common operations for both in page and persistent notification
Peter Beverloo 2016/06/28 22:52:41 Remove. (A class-level comment would be appropriat
Miguel Garcia 2016/06/29 17:25:40 Acknowledged.
9 namespace content {
10 class BrowserContext;
11 } // namespace content
12
13 namespace notification_operation_common {
Peter Beverloo 2016/06/28 22:52:41 Please stash common behaviour like this in a class
Miguel Garcia 2016/06/29 17:25:40 Done.
14
15 // Things you can do to a notification.
16 enum NotificationOperation {
17 NOTIFICATION_CLICK = 0,
18 NOTIFICATION_CLOSE = 1,
19 NOTIFICATION_SETTINGS = 2
20 };
21
22 // Open the Notification settings screen when clicking the right button.
23 void OpenNotificationSettings(content::BrowserContext* browser_context);
Peter Beverloo 2016/06/28 22:52:41 This should probably take a Profile* since it's no
Miguel Garcia 2016/06/29 17:25:40 Todo added but why exactly do we take a BrowserCon
24
25 } // namespace notification_operation_common
26
27 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698