| OLD | NEW |
| 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_MANAGER_FILE_MANAGER_NOTIFICATIO
NS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_NOTIFICATIO
NS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_NOTIFICATIO
NS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_NOTIFICATIO
NS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Unregisters the removable device whose mount events will be handled in | 40 // Unregisters the removable device whose mount events will be handled in |
| 41 // |ManageNotificationsOnMountComplete|. | 41 // |ManageNotificationsOnMountComplete|. |
| 42 void UnregisterDevice(const std::string& system_path); | 42 void UnregisterDevice(const std::string& system_path); |
| 43 | 43 |
| 44 void ManageNotificationsOnMountCompleted(const std::string& system_path, | 44 void ManageNotificationsOnMountCompleted(const std::string& system_path, |
| 45 const std::string& label, | 45 const std::string& label, |
| 46 bool is_parent, | 46 bool is_parent, |
| 47 bool success, | 47 bool success, |
| 48 bool is_unsupported); | 48 bool is_unsupported); |
| 49 | 49 |
| 50 void ManageNotificationOnGDataSyncProgress(int count); | |
| 51 void ManageNotificationOnGDataSyncFinish(bool success); | |
| 52 | |
| 53 // Primary method for showing a notification. | 50 // Primary method for showing a notification. |
| 54 void ShowNotification(NotificationType type, const std::string& path); | 51 void ShowNotification(NotificationType type, const std::string& path); |
| 55 void ShowNotificationDelayed(NotificationType type, | 52 void ShowNotificationDelayed(NotificationType type, |
| 56 const std::string& path, | 53 const std::string& path, |
| 57 base::TimeDelta delay); | 54 base::TimeDelta delay); |
| 58 | 55 |
| 59 // Primary method for hiding a notification. Virtual for mock in unittest. | 56 // Primary method for hiding a notification. Virtual for mock in unittest. |
| 60 virtual void HideNotification(NotificationType type, const std::string& path); | 57 virtual void HideNotification(NotificationType type, const std::string& path); |
| 61 void HideNotificationDelayed(NotificationType type, | 58 void HideNotificationDelayed(NotificationType type, |
| 62 const std::string& path, | 59 const std::string& path, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 91 | 88 |
| 92 NotificationMap notification_map_; | 89 NotificationMap notification_map_; |
| 93 std::set<std::string> hidden_notifications_; | 90 std::set<std::string> hidden_notifications_; |
| 94 MountRequestsMap mount_requests_; | 91 MountRequestsMap mount_requests_; |
| 95 Profile* profile_; | 92 Profile* profile_; |
| 96 | 93 |
| 97 DISALLOW_COPY_AND_ASSIGN(FileManagerNotifications); | 94 DISALLOW_COPY_AND_ASSIGN(FileManagerNotifications); |
| 98 }; | 95 }; |
| 99 | 96 |
| 100 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_NOTIFICA
TIONS_H_ | 97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_MANAGER_NOTIFICA
TIONS_H_ |
| OLD | NEW |