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 EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ |
6 #define EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ | 6 #define EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/single_thread_task_runner.h" |
14 #include "device/power_save_blocker/power_save_blocker.h" | 15 #include "device/power_save_blocker/power_save_blocker.h" |
15 #include "extensions/browser/browser_context_keyed_api_factory.h" | 16 #include "extensions/browser/browser_context_keyed_api_factory.h" |
16 #include "extensions/browser/extension_function.h" | 17 #include "extensions/browser/extension_function.h" |
17 #include "extensions/browser/extension_registry_observer.h" | 18 #include "extensions/browser/extension_registry_observer.h" |
18 #include "extensions/common/api/power.h" | 19 #include "extensions/common/api/power.h" |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 class BrowserContext; | 22 class BrowserContext; |
22 } | 23 } |
23 | 24 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 // Outstanding requests. | 124 // Outstanding requests. |
124 ExtensionLevelMap extension_levels_; | 125 ExtensionLevelMap extension_levels_; |
125 | 126 |
126 DISALLOW_COPY_AND_ASSIGN(PowerAPI); | 127 DISALLOW_COPY_AND_ASSIGN(PowerAPI); |
127 }; | 128 }; |
128 | 129 |
129 } // namespace extensions | 130 } // namespace extensions |
130 | 131 |
131 #endif // EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ | 132 #endif // EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ |
OLD | NEW |