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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Whether the system is resuming or not. | 90 // Whether the system is resuming or not. |
91 bool is_resuming_; | 91 bool is_resuming_; |
92 | 92 |
93 // Map of device path and device state. | 93 // Map of device path and device state. |
94 std::map<std::string, DeviceState> device_states_; | 94 std::map<std::string, DeviceState> device_states_; |
95 | 95 |
96 // Thread checker. | 96 // Thread checker. |
97 base::ThreadChecker thread_checker_; | 97 base::ThreadChecker thread_checker_; |
98 | 98 |
99 // Last event time for UMA. | |
100 // TODO(hirono): Remove the temporarily UMA. crbug.com/433734 | |
101 base::Time last_hard_unplugged_; | |
102 base::Time last_suspend_done_; | |
103 | |
104 // Note: This should remain the last member so it'll be destroyed and | 99 // Note: This should remain the last member so it'll be destroyed and |
105 // invalidate the weak pointers before any other members are destroyed. | 100 // invalidate the weak pointers before any other members are destroyed. |
106 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; | 101 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; |
107 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); | 102 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); |
108 }; | 103 }; |
109 } // namespace file_manager | 104 } // namespace file_manager |
110 | 105 |
111 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H
_ | 106 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H
_ |
OLD | NEW |