Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / status_icons / desktop_notification_balloon.h
blobc027132e485839273504f6082e07f57c9ff578a4
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_
6 #define CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h"
12 class Notification;
13 class Profile;
15 namespace gfx {
16 class ImageSkia;
19 // Provides the notification balloon functionality by using desktop
20 // notifications to platforms that don't have a specific native API.
21 class DesktopNotificationBalloon {
22 public:
23 DesktopNotificationBalloon();
24 virtual ~DesktopNotificationBalloon();
26 void DisplayBalloon(const gfx::ImageSkia& icon,
27 const base::string16& title,
28 const base::string16& contents);
30 private:
31 std::string notification_id_;
32 Profile* profile_;
34 // Counter to provide unique ids to notifications.
35 static int id_count_;
37 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationBalloon);
40 #endif // CHROME_BROWSER_STATUS_ICONS_DESKTOP_NOTIFICATION_BALLOON_H_