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

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

Issue 3304015: Use PrefChangeRegistrar everywhere (Closed)
Patch Set: final version for commit Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DESKTOP_NOTIFICATION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/browser/notifications/notification.h" 13 #include "chrome/browser/notifications/notification.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h"
14 #include "chrome/common/content_settings.h" 15 #include "chrome/common/content_settings.h"
15 #include "chrome/common/notification_observer.h" 16 #include "chrome/common/notification_observer.h"
16 #include "chrome/common/notification_registrar.h" 17 #include "chrome/common/notification_registrar.h"
17 #include "chrome/common/notification_service.h" 18 #include "chrome/common/notification_service.h"
18 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
19 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" 20 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h"
20 21
21 class NotificationUIManager; 22 class NotificationUIManager;
22 class NotificationsPrefsCache; 23 class NotificationsPrefsCache;
23 class PrefService; 24 class PrefService;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Profile* profile_; 130 Profile* profile_;
130 131
131 // A cache of preferences which is accessible only on the IO thread 132 // A cache of preferences which is accessible only on the IO thread
132 // to service synchronous IPCs. 133 // to service synchronous IPCs.
133 scoped_refptr<NotificationsPrefsCache> prefs_cache_; 134 scoped_refptr<NotificationsPrefsCache> prefs_cache_;
134 135
135 // Non-owned pointer to the notification manager which manages the 136 // Non-owned pointer to the notification manager which manages the
136 // UI for desktop toasts. 137 // UI for desktop toasts.
137 NotificationUIManager* ui_manager_; 138 NotificationUIManager* ui_manager_;
138 139
140 PrefChangeRegistrar registrar_;
141
139 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); 142 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService);
140 }; 143 };
141 144
142 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 145 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698