OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
7 | 7 |
| 8 #include <map> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/extensions/app_icon_loader.h" | 13 #include "chrome/browser/extensions/app_icon_loader.h" |
13 #include "chrome/browser/history/history_types.h" | 14 #include "chrome/browser/history/history_types.h" |
| 15 #include "chrome/common/content_settings.h" |
14 #include "ui/message_center/notifier_settings.h" | 16 #include "ui/message_center/notifier_settings.h" |
15 | 17 |
16 class CancelableTaskTracker; | 18 class CancelableTaskTracker; |
17 | 19 |
18 // The class to bridge between the settings UI of notifiers and the preference | 20 // The class to bridge between the settings UI of notifiers and the preference |
19 // storage. | 21 // storage. |
20 class MessageCenterSettingsController | 22 class MessageCenterSettingsController |
21 : public message_center::NotifierSettingsProvider, | 23 : public message_center::NotifierSettingsProvider, |
22 public extensions::AppIconLoader::Delegate { | 24 public extensions::AppIconLoader::Delegate { |
23 public: | 25 public: |
(...skipping 24 matching lines...) Expand all Loading... |
48 | 50 |
49 // The view displaying notifier settings. NULL if the settings are not | 51 // The view displaying notifier settings. NULL if the settings are not |
50 // visible. | 52 // visible. |
51 message_center::NotifierSettingsDelegate* delegate_; | 53 message_center::NotifierSettingsDelegate* delegate_; |
52 | 54 |
53 // The task tracker for loading favicons. | 55 // The task tracker for loading favicons. |
54 scoped_ptr<CancelableTaskTracker> favicon_tracker_; | 56 scoped_ptr<CancelableTaskTracker> favicon_tracker_; |
55 | 57 |
56 scoped_ptr<extensions::AppIconLoader> app_icon_loader_; | 58 scoped_ptr<extensions::AppIconLoader> app_icon_loader_; |
57 | 59 |
| 60 std::map<string16, ContentSettingsPattern> patterns_; |
| 61 |
58 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); | 62 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); |
59 }; | 63 }; |
60 | 64 |
61 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 65 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
OLD | NEW |