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

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

Issue 2105863002: Verify that the notification response contains sensible data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add upstream branch Created 4 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
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_OPERATION_COMMON_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
7 7
8 // A series of common operations for both in page and persistent notification 8 // A series of common operations for both in page and persistent notification
9 namespace content { 9 namespace content {
10 class BrowserContext; 10 class BrowserContext;
11 } // namespace content 11 } // namespace content
12 12
13 namespace notification_operation_common { 13 namespace notification_operation_common {
14 14
15 // Things you can do to a notification. 15 // Things you can do to a notification.
16 enum NotificationOperation { 16 enum NotificationOperation {
17 NOTIFICATION_CLICK = 0, 17 NOTIFICATION_CLICK = 0,
18 NOTIFICATION_CLOSE = 1, 18 NOTIFICATION_CLOSE = 1,
19 NOTIFICATION_SETTINGS = 2 19 NOTIFICATION_SETTINGS = 2,
20 NOTIFICATION_OPERATION_MAX = NOTIFICATION_SETTINGS
20 }; 21 };
21 22
22 // Open the Notification settings screen when clicking the right button. 23 // Open the Notification settings screen when clicking the right button.
23 void OpenNotificationSettings(content::BrowserContext* browser_context); 24 void OpenNotificationSettings(content::BrowserContext* browser_context);
24 25
25 } // namespace notification_operation_common 26 } // namespace notification_operation_common
26 27
27 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ 28 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698