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 <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "content/public/browser/power_save_blocker.h" | 14 #include "content/public/browser/power_save_blocker.h" |
14 #include "extensions/browser/browser_context_keyed_api_factory.h" | 15 #include "extensions/browser/browser_context_keyed_api_factory.h" |
15 #include "extensions/browser/extension_function.h" | 16 #include "extensions/browser/extension_function.h" |
16 #include "extensions/browser/extension_registry_observer.h" | 17 #include "extensions/browser/extension_registry_observer.h" |
17 #include "extensions/common/api/power.h" | 18 #include "extensions/common/api/power.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 class BrowserContext; | 21 class BrowserContext; |
21 } | 22 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // that has an outstanding request. | 113 // that has an outstanding request. |
113 typedef std::map<std::string, api::power::Level> ExtensionLevelMap; | 114 typedef std::map<std::string, api::power::Level> ExtensionLevelMap; |
114 ExtensionLevelMap extension_levels_; | 115 ExtensionLevelMap extension_levels_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(PowerAPI); | 117 DISALLOW_COPY_AND_ASSIGN(PowerAPI); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace extensions | 120 } // namespace extensions |
120 | 121 |
121 #endif // EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ | 122 #endif // EXTENSIONS_BROWSER_API_POWER_POWER_API_H_ |
OLD | NEW |