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 CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
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/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/prefs/pref_change_registrar.h" | |
18 #include "chrome/browser/background/background_application_list_model.h" | 17 #include "chrome/browser/background/background_application_list_model.h" |
19 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 18 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
20 #include "chrome/browser/status_icons/status_icon.h" | 19 #include "chrome/browser/status_icons/status_icon.h" |
21 #include "chrome/browser/status_icons/status_icon_menu_model.h" | 20 #include "chrome/browser/status_icons/status_icon_menu_model.h" |
22 #include "chrome/browser/ui/browser_list_observer.h" | 21 #include "chrome/browser/ui/browser_list_observer.h" |
23 #include "components/keyed_service/core/keyed_service.h" | 22 #include "components/keyed_service/core/keyed_service.h" |
| 23 #include "components/prefs/pref_change_registrar.h" |
24 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
26 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
27 | 27 |
28 class BackgroundTrigger; | 28 class BackgroundTrigger; |
29 class Browser; | 29 class Browser; |
30 class PrefRegistrySimple; | 30 class PrefRegistrySimple; |
31 class Profile; | 31 class Profile; |
32 class ProfileInfoCache; | 32 class ProfileInfoCache; |
33 class StatusIcon; | 33 class StatusIcon; |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 429 |
430 // Set to true when background mode is keeping Chrome alive. | 430 // Set to true when background mode is keeping Chrome alive. |
431 bool keeping_alive_; | 431 bool keeping_alive_; |
432 | 432 |
433 base::WeakPtrFactory<BackgroundModeManager> weak_factory_; | 433 base::WeakPtrFactory<BackgroundModeManager> weak_factory_; |
434 | 434 |
435 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); | 435 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); |
436 }; | 436 }; |
437 | 437 |
438 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 438 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
OLD | NEW |