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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_notifications.h

Issue 10824265: Correctly remove file browser notifications from Ash notification tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 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) 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_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 typedef std::map<std::string, NotificationMessage*> NotificationMap; 77 typedef std::map<std::string, NotificationMessage*> NotificationMap;
78 78
79 std::string CreateNotificationId(NotificationType type, 79 std::string CreateNotificationId(NotificationType type,
80 const std::string& path); 80 const std::string& path);
81 NotificationMessage* GetNotification(NotificationType type, 81 NotificationMessage* GetNotification(NotificationType type,
82 const std::string& path, 82 const std::string& path,
83 const string16& message); 83 const string16& message);
84 void ShowNotificationById(NotificationType type, 84 void ShowNotificationById(NotificationType type,
85 const std::string& notification_id, 85 const std::string& notification_id,
86 const string16& message); 86 const string16& message);
87 void HideNotificationById(const std::string& id); 87 void HideNotificationById(const std::string& notification_id);
88 void RemoveNotificationById(const std::string& notification_id);
88 89
89 NotificationMap notification_map_; 90 NotificationMap notification_map_;
90 std::set<std::string> hidden_notifications_; 91 std::set<std::string> hidden_notifications_;
91 MountRequestsMap mount_requests_; 92 MountRequestsMap mount_requests_;
92 Profile* profile_; 93 Profile* profile_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications); 95 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications);
95 }; 96 };
96 97
97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698