OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // Handles the visible notification (or balloons). | 5 // Handles the visible notification (or balloons). |
6 | 6 |
7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ | 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ |
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ | 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ |
9 #pragma once | |
10 | 9 |
11 #include <deque> | 10 #include <deque> |
12 #include <string> | 11 #include <string> |
13 | 12 |
14 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
15 | 14 |
16 class Balloon; | 15 class Balloon; |
17 class GURL; | 16 class GURL; |
18 class Notification; | 17 class Notification; |
19 | 18 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 int count() const { return static_cast<int>(balloons_.size()); } | 59 int count() const { return static_cast<int>(balloons_.size()); } |
61 | 60 |
62 private: | 61 private: |
63 // Queue of active balloons. Pointers are owned by this class. | 62 // Queue of active balloons. Pointers are owned by this class. |
64 Balloons balloons_; | 63 Balloons balloons_; |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionBase); | 65 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionBase); |
67 }; | 66 }; |
68 | 67 |
69 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ | 68 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_BASE_H_ |
OLD | NEW |