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 #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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/prefs/pref_member.h" | 17 #include "base/prefs/pref_member.h" |
18 #include "base/scoped_observer.h" | 18 #include "base/scoped_observer.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "chrome/browser/content_settings/content_settings_provider.h" | |
21 #include "chrome/browser/content_settings/permission_context_base.h" | 20 #include "chrome/browser/content_settings/permission_context_base.h" |
22 #include "chrome/browser/notifications/extension_welcome_notification.h" | 21 #include "chrome/browser/notifications/extension_welcome_notification.h" |
23 #include "chrome/common/content_settings.h" | 22 #include "chrome/common/content_settings.h" |
24 #include "components/keyed_service/core/keyed_service.h" | 23 #include "components/keyed_service/core/keyed_service.h" |
25 #include "extensions/browser/extension_registry_observer.h" | 24 #include "extensions/browser/extension_registry_observer.h" |
26 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 25 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" |
27 #include "third_party/WebKit/public/web/WebTextDirection.h" | 26 #include "third_party/WebKit/public/web/WebTextDirection.h" |
28 #include "ui/message_center/notifier_settings.h" | 27 #include "ui/message_center/notifier_settings.h" |
29 #include "url/gurl.h" | 28 #include "url/gurl.h" |
30 | 29 |
31 class ContentSettingsPattern; | |
32 class Notification; | 30 class Notification; |
33 class NotificationDelegate; | 31 class NotificationDelegate; |
34 class NotificationUIManager; | 32 class NotificationUIManager; |
35 class Profile; | 33 class Profile; |
36 | 34 |
37 namespace content { | 35 namespace content { |
38 class DesktopNotificationDelegate; | 36 class DesktopNotificationDelegate; |
39 class RenderFrameHost; | 37 class RenderFrameHost; |
40 struct ShowDesktopNotificationHostMsgParams; | 38 struct ShowDesktopNotificationHostMsgParams; |
41 } | 39 } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 176 |
179 // Welcome Notification | 177 // Welcome Notification |
180 scoped_ptr<ExtensionWelcomeNotification> chrome_now_welcome_notification_; | 178 scoped_ptr<ExtensionWelcomeNotification> chrome_now_welcome_notification_; |
181 | 179 |
182 base::WeakPtrFactory<DesktopNotificationService> weak_factory_; | 180 base::WeakPtrFactory<DesktopNotificationService> weak_factory_; |
183 | 181 |
184 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); | 182 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); |
185 }; | 183 }; |
186 | 184 |
187 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ | 185 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ |
OLD | NEW |