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

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

Issue 768373002: Remove DesktopNotificationService::AddIconNotification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove comment Created 6 years 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) 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>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class DesktopNotificationService : public PermissionContextBase 58 class DesktopNotificationService : public PermissionContextBase
59 #if defined(ENABLE_EXTENSIONS) 59 #if defined(ENABLE_EXTENSIONS)
60 , 60 ,
61 public extensions::ExtensionRegistryObserver 61 public extensions::ExtensionRegistryObserver
62 #endif 62 #endif
63 { 63 {
64 public: 64 public:
65 // Register profile-specific prefs of notifications. 65 // Register profile-specific prefs of notifications.
66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* prefs); 66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* prefs);
67 67
68 // Add a desktop notification.
69 static std::string AddIconNotification(const GURL& origin_url,
70 const base::string16& title,
71 const base::string16& message,
72 const gfx::Image& icon,
73 const base::string16& replace_id,
74 NotificationDelegate* delegate,
75 Profile* profile);
76
77 explicit DesktopNotificationService(Profile* profile); 68 explicit DesktopNotificationService(Profile* profile);
78 ~DesktopNotificationService() override; 69 ~DesktopNotificationService() override;
79 70
80 // Requests Web Notification permission for |requesting_frame|. The |callback| 71 // Requests Web Notification permission for |requesting_frame|. The |callback|
81 // will be invoked after the user has made a decision. 72 // will be invoked after the user has made a decision.
82 void RequestNotificationPermission( 73 void RequestNotificationPermission(
83 content::WebContents* web_contents, 74 content::WebContents* web_contents,
84 const PermissionRequestID& request_id, 75 const PermissionRequestID& request_id,
85 const GURL& requesting_origin, 76 const GURL& requesting_origin,
86 bool user_gesture, 77 bool user_gesture,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // An observer to listen when extension is uninstalled. 142 // An observer to listen when extension is uninstalled.
152 ScopedObserver<extensions::ExtensionRegistry, 143 ScopedObserver<extensions::ExtensionRegistry,
153 extensions::ExtensionRegistryObserver> 144 extensions::ExtensionRegistryObserver>
154 extension_registry_observer_; 145 extension_registry_observer_;
155 #endif 146 #endif
156 147
157 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); 148 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService);
158 }; 149 };
159 150
160 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 151 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698