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

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

Issue 8612007: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 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>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int route_id, 72 int route_id,
73 int notification_id); 73 int notification_id);
74 74
75 // Methods to setup and modify permission preferences. 75 // Methods to setup and modify permission preferences.
76 void GrantPermission(const GURL& origin); 76 void GrantPermission(const GURL& origin);
77 void DenyPermission(const GURL& origin); 77 void DenyPermission(const GURL& origin);
78 78
79 // content::NotificationObserver implementation. 79 // content::NotificationObserver implementation.
80 virtual void Observe(int type, 80 virtual void Observe(int type,
81 const content::NotificationSource& source, 81 const content::NotificationSource& source,
82 const content::NotificationDetails& details); 82 const content::NotificationDetails& details) OVERRIDE;
83 83
84 // Creates a data:xxxx URL which contains the full HTML for a notification 84 // Creates a data:xxxx URL which contains the full HTML for a notification
85 // using supplied icon, title, and text, run through a template which contains 85 // using supplied icon, title, and text, run through a template which contains
86 // the standard formatting for notifications. 86 // the standard formatting for notifications.
87 static string16 CreateDataUrl(const GURL& icon_url, 87 static string16 CreateDataUrl(const GURL& icon_url,
88 const string16& title, 88 const string16& title,
89 const string16& body, 89 const string16& body,
90 WebKit::WebTextDirection dir); 90 WebKit::WebTextDirection dir);
91 91
92 // Creates a data:xxxx URL which contains the full HTML for a notification 92 // Creates a data:xxxx URL which contains the full HTML for a notification
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Non-owned pointer to the notification manager which manages the 144 // Non-owned pointer to the notification manager which manages the
145 // UI for desktop toasts. 145 // UI for desktop toasts.
146 NotificationUIManager* ui_manager_; 146 NotificationUIManager* ui_manager_;
147 147
148 content::NotificationRegistrar notification_registrar_; 148 content::NotificationRegistrar notification_registrar_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService); 150 DISALLOW_COPY_AND_ASSIGN(DesktopNotificationService);
151 }; 151 };
152 152
153 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_ 153 #endif // CHROME_BROWSER_NOTIFICATIONS_DESKTOP_NOTIFICATION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698