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

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

Issue 10947046: Eliminate kAshNotifyDisabled and SystemNotification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit Created 8 years, 2 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 private: 72 private:
73 class NotificationMessage; 73 class NotificationMessage;
74 struct MountRequestsInfo; 74 struct MountRequestsInfo;
75 75
76 typedef std::map<std::string, MountRequestsInfo> MountRequestsMap; 76 typedef std::map<std::string, MountRequestsInfo> MountRequestsMap;
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,
82 const std::string& path,
83 const string16& message);
84 void ShowNotificationById(NotificationType type, 81 void ShowNotificationById(NotificationType type,
85 const std::string& notification_id, 82 const std::string& notification_id,
86 const string16& message); 83 const string16& message);
87 void HideNotificationById(const std::string& notification_id); 84 void HideNotificationById(const std::string& notification_id);
88 void RemoveNotificationById(const std::string& notification_id); 85 void RemoveNotificationById(const std::string& notification_id);
89 86
90 NotificationMap notification_map_; 87 NotificationMap notification_map_;
91 std::set<std::string> hidden_notifications_; 88 std::set<std::string> hidden_notifications_;
92 MountRequestsMap mount_requests_; 89 MountRequestsMap mount_requests_;
93 Profile* profile_; 90 Profile* profile_;
94 91
95 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications); 92 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications);
96 }; 93 };
97 94
98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_ 95 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chromeos/extensions/file_browser_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698