OLD | NEW |
(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_ |
OLD | NEW |