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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 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
OLDNEW
1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
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/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "chrome/browser/content_settings/content_settings_provider.h" 16 #include "chrome/browser/content_settings/content_settings_provider.h"
17 #include "chrome/browser/profiles/profile_keyed_service.h" 17 #include "chrome/browser/profiles/profile_keyed_service.h"
18 #include "chrome/common/content_settings.h" 18 #include "chrome/common/content_settings.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
24 24
25 class ContentSettingsPattern; 25 class ContentSettingsPattern;
26 class Notification; 26 class Notification;
27 class NotificationUIManager; 27 class NotificationUIManager;
28 class Profile; 28 class Profile;
29 class TabContents;
30 29
31 namespace content { 30 namespace content {
32 class WebContents; 31 class WebContents;
33 struct ShowDesktopNotificationHostMsgParams; 32 struct ShowDesktopNotificationHostMsgParams;
34 } 33 }
35 34
36 // The DesktopNotificationService is an object, owned by the Profile, 35 // The DesktopNotificationService is an object, owned by the Profile,
37 // which provides the creation of desktop "toasts" to web pages and workers. 36 // which provides the creation of desktop "toasts" to web pages and workers.
38 class DesktopNotificationService : public content::NotificationObserver, 37 class DesktopNotificationService : public content::NotificationObserver,
39 public ProfileKeyedService { 38 public ProfileKeyedService {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Non-owned pointer to the notification manager which manages the 144 // Non-owned pointer to the notification manager which manages the
146 // UI for desktop toasts. 145 // UI for desktop toasts.
147 NotificationUIManager* ui_manager_; 146 NotificationUIManager* ui_manager_;
148 147
149 content::NotificationRegistrar notification_registrar_; 148 content::NotificationRegistrar notification_registrar_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); 150 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService);
152 }; 151 };
153 152
154 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 153 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc ('k') | chrome/browser/oom_priority_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698