OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DEVICE_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 | 91 |
92 // Whether the system is resuming or not. | 92 // Whether the system is resuming or not. |
93 bool is_resuming_; | 93 bool is_resuming_; |
94 | 94 |
95 // Map of device path and device state. | 95 // Map of device path and device state. |
96 std::map<std::string, DeviceState> device_states_; | 96 std::map<std::string, DeviceState> device_states_; |
97 | 97 |
98 // Thread checker. | 98 // Thread checker. |
99 base::ThreadChecker thread_checker_; | 99 base::ThreadChecker thread_checker_; |
100 | 100 |
101 // Last event time for UMA. | |
102 // TODO(hirono): Remove the temporarily UMA. crbug.com/433734 | |
103 base::Time last_hard_unpluged_; | |
mtomasz
2014/11/17 08:48:03
typo: unplugged
hirono
2014/11/25 02:32:13
Done.
| |
104 base::Time last_suspend_done_; | |
105 | |
101 // Note: This should remain the last member so it'll be destroyed and | 106 // Note: This should remain the last member so it'll be destroyed and |
102 // invalidate the weak pointers before any other members are destroyed. | 107 // invalidate the weak pointers before any other members are destroyed. |
103 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; | 108 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; |
104 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); | 109 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); |
105 }; | 110 }; |
106 } // namespace file_manager | 111 } // namespace file_manager |
107 | 112 |
108 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _ | 113 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H _ |
OLD | NEW |