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

Side by Side Diff: chrome/browser/notifications/notifier_source.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment 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
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/message_center/notifier_settings.h" 12 #include "ui/message_center/notifier_settings.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace message_center { 16 namespace message_center {
17 struct Notifier; 17 struct Notifier;
18 class NotifierSettingsObserver;
19 } 18 }
20 19
21 class NotifierSource { 20 class NotifierSource {
22 public: 21 public:
23 class Observer { 22 class Observer {
24 public: 23 public:
25 virtual void OnIconImageUpdated(const message_center::NotifierId& id, 24 virtual void OnIconImageUpdated(const message_center::NotifierId& id,
26 const gfx::Image& image) = 0; 25 const gfx::Image& image) = 0;
27 virtual void OnNotifierEnabledChanged(const message_center::NotifierId& id, 26 virtual void OnNotifierEnabledChanged(const message_center::NotifierId& id,
28 bool enabled) = 0; 27 bool enabled) = 0;
(...skipping 20 matching lines...) Expand all
49 virtual void OnNotifierSettingsClosing() {} 48 virtual void OnNotifierSettingsClosing() {}
50 49
51 // Notifier type provided by the source. 50 // Notifier type provided by the source.
52 virtual message_center::NotifierId::NotifierType GetNotifierType() = 0; 51 virtual message_center::NotifierId::NotifierType GetNotifierType() = 0;
53 52
54 private: 53 private:
55 DISALLOW_COPY_AND_ASSIGN(NotifierSource); 54 DISALLOW_COPY_AND_ASSIGN(NotifierSource);
56 }; 55 };
57 56
58 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_ 57 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFIER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698