| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_BADGING_BADGE_SERVICE_DELEGATE_H_ |
| #define CHROME_BROWSER_BADGING_BADGE_SERVICE_DELEGATE_H_ |
| |
| namespace content { |
| class WebContents; |
| } |
| |
| // Delegate for setting and clearing app badges. This is implemented at a |
| // UI-layer, allowing for a platform specific implementation of badging. |
| class BadgeServiceDelegate { |
| public: |
| // Sets the Badge for |web_contents|. |
| // TODO(harrisjay): Make this accept contents for the badge. |
| void SetBadge(content::WebContents* web_contents); |
| |
| // Clears the badge for |web_contents|. |
| void ClearBadge(content::WebContents* web_contents); |
| }; |
| |
| #endif // CHROME_BROWSER_BADGING_BADGE_SERVICE_DELEGATE_H_ |