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 |
| 11 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
13 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" | 14 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
14 #include "chrome/common/extensions/api/file_manager_private.h" | 15 #include "chrome/common/extensions/api/file_manager_private.h" |
15 #include "chromeos/dbus/power_manager_client.h" | 16 #include "chromeos/dbus/power_manager_client.h" |
16 | 17 |
17 namespace file_manager { | 18 namespace file_manager { |
18 | 19 |
19 enum DeviceState { | 20 enum DeviceState { |
20 // Device is not being hard unplugged. | 21 // Device is not being hard unplugged. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 base::ThreadChecker thread_checker_; | 98 base::ThreadChecker thread_checker_; |
98 | 99 |
99 // Note: This should remain the last member so it'll be destroyed and | 100 // Note: This should remain the last member so it'll be destroyed and |
100 // invalidate the weak pointers before any other members are destroyed. | 101 // invalidate the weak pointers before any other members are destroyed. |
101 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; | 102 base::WeakPtrFactory<DeviceEventRouter> weak_factory_; |
102 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); | 103 DISALLOW_COPY_AND_ASSIGN(DeviceEventRouter); |
103 }; | 104 }; |
104 } // namespace file_manager | 105 } // namespace file_manager |
105 | 106 |
106 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H
_ | 107 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_DEVICE_EVENT_ROUTER_H
_ |
OLD | NEW |