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

Side by Side Diff: content/public/browser/notification_id_verifier.h

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)
Patch Set: revert unit test Created 4 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
(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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_ID_VERIFIER_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_ID_VERIFIER_H_
7
8 #include "base/strings/string_piece.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 class CONTENT_EXPORT NotificationIdVerifier {
14 public:
15 // Returns whether |notification_id| belongs to a persistent notification.
16 static bool IsPersistentNotification(
17 const base::StringPiece& notification_id);
18
19 // Returns whether |notification_id| belongs to a non-persistent notification.
20 static bool IsNonPersistentNotification(
21 const base::StringPiece& notification_id);
22 };
23
24 } // namespace content
25
26 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_ID_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698