| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IDLE_IDLE_MANAGER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_IDLE_IDLE_MANAGER_H_ |
| 6 #define EXTENSIONS_BROWSER_API_IDLE_IDLE_MANAGER_H_ | 6 #define EXTENSIONS_BROWSER_API_IDLE_IDLE_MANAGER_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_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
| 17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
| 19 #include "components/keyed_service/core/keyed_service.h" | 19 #include "components/keyed_service/core/keyed_service.h" |
| 20 #include "extensions/browser/event_router.h" | 20 #include "extensions/browser/event_router.h" |
| 21 #include "extensions/browser/extension_registry_observer.h" | 21 #include "extensions/browser/extension_registry_observer.h" |
| 22 #include "ui/base/idle/idle.h" | 22 #include "ui/base/idle/idle.h" |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class StringValue; | 25 class Value; |
| 26 using StringValue = Value; |
| 26 } // namespace base | 27 } // namespace base |
| 27 | 28 |
| 28 namespace content { | 29 namespace content { |
| 29 class BrowserContext; | 30 class BrowserContext; |
| 30 } // namespace content | 31 } // namespace content |
| 31 | 32 |
| 32 namespace extensions { | 33 namespace extensions { |
| 33 class ExtensionRegistry; | 34 class ExtensionRegistry; |
| 34 | 35 |
| 35 typedef base::Callback<void(ui::IdleState)> QueryStateCallback; | 36 typedef base::Callback<void(ui::IdleState)> QueryStateCallback; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 extension_registry_observer_; | 143 extension_registry_observer_; |
| 143 | 144 |
| 144 base::WeakPtrFactory<IdleManager> weak_factory_; | 145 base::WeakPtrFactory<IdleManager> weak_factory_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(IdleManager); | 147 DISALLOW_COPY_AND_ASSIGN(IdleManager); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace extensions | 150 } // namespace extensions |
| 150 | 151 |
| 151 #endif // EXTENSIONS_BROWSER_API_IDLE_IDLE_MANAGER_H_ | 152 #endif // EXTENSIONS_BROWSER_API_IDLE_IDLE_MANAGER_H_ |
| OLD | NEW |