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

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

Issue 12879016: Keep the obtained url patterns for notification settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_settings_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/message_center_settings_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698