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

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

Issue 10026013: Update use of TimeDelta in chrome/browser/*, ui/views/*, and other places. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 7 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
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 <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool is_parent, 45 bool is_parent,
46 bool success, 46 bool success,
47 bool is_unsupported); 47 bool is_unsupported);
48 48
49 void ManageNotificationOnGDataSyncProgress(int count); 49 void ManageNotificationOnGDataSyncProgress(int count);
50 void ManageNotificationOnGDataSyncFinish(bool success); 50 void ManageNotificationOnGDataSyncFinish(bool success);
51 51
52 void ShowNotification(NotificationType type, const std::string& path); 52 void ShowNotification(NotificationType type, const std::string& path);
53 void ShowNotificationDelayed(NotificationType type, 53 void ShowNotificationDelayed(NotificationType type,
54 const std::string& path, 54 const std::string& path,
55 size_t delay_ms); 55 base::TimeDelta delay);
56 virtual void ShowNotificationWithMessage(NotificationType type, 56 virtual void ShowNotificationWithMessage(NotificationType type,
57 const std::string& path, 57 const std::string& path,
58 const string16& message); 58 const string16& message);
59 59
60 virtual void HideNotification(NotificationType type, const std::string& path); 60 virtual void HideNotification(NotificationType type, const std::string& path);
61 void HideNotificationDelayed(NotificationType type, 61 void HideNotificationDelayed(NotificationType type,
62 const std::string& path, 62 const std::string& path,
63 size_t delay_ms); 63 base::TimeDelta delay);
64 64
65 const NotificationMap& notifications() const { return notifications_; } 65 const NotificationMap& notifications() const { return notifications_; }
66 66
67 protected: 67 protected:
68 virtual void PostDelayedShowNotificationTask( 68 virtual void PostDelayedShowNotificationTask(
69 const std::string& notification_id, 69 const std::string& notification_id,
70 NotificationType type, 70 NotificationType type,
71 const string16& message, 71 const string16& message,
72 size_t delay_ms); 72 base::TimeDelta delay);
73 static void ShowNotificationDelayedTask(const std::string& notification_id, 73 static void ShowNotificationDelayedTask(const std::string& notification_id,
74 NotificationType type, 74 NotificationType type,
75 const string16& message, 75 const string16& message,
76 base::WeakPtr<FileBrowserNotifications> self); 76 base::WeakPtr<FileBrowserNotifications> self);
77 77
78 virtual void PostDelayedHideNotificationTask(NotificationType type, 78 virtual void PostDelayedHideNotificationTask(
79 const std::string path, 79 NotificationType type, const std::string path, base::TimeDelta delay);
80 size_t delay_ms);
81 static void HideNotificationDelayedTask(NotificationType type, 80 static void HideNotificationDelayedTask(NotificationType type,
82 const std::string& path, 81 const std::string& path,
83 base::WeakPtr<FileBrowserNotifications> self); 82 base::WeakPtr<FileBrowserNotifications> self);
84 83
85 private: 84 private:
86 struct MountRequestsInfo { 85 struct MountRequestsInfo {
87 bool mount_success_exists; 86 bool mount_success_exists;
88 bool fail_message_finalized; 87 bool fail_message_finalized;
89 bool fail_notification_shown; 88 bool fail_notification_shown;
90 bool non_parent_device_failed; 89 bool non_parent_device_failed;
(...skipping 29 matching lines...) Expand all
120 119
121 string16 link_text_; 120 string16 link_text_;
122 NotificationMap notifications_; 121 NotificationMap notifications_;
123 MountRequestsMap mount_requests_; 122 MountRequestsMap mount_requests_;
124 Profile* profile_; 123 Profile* profile_;
125 124
126 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications); 125 DISALLOW_COPY_AND_ASSIGN(FileBrowserNotifications);
127 }; 126 };
128 127
129 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_ 128 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_NOTIFICATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698