| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_EPHEMERAL_APP_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ |
| 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ | 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "apps/app_lifetime_monitor.h" | 10 #include "apps/app_lifetime_monitor.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 std::set<std::string>* remove_app_ids); | 86 std::set<std::string>* remove_app_ids); |
| 87 | 87 |
| 88 Profile* profile_; | 88 Profile* profile_; |
| 89 | 89 |
| 90 ScopedObserver<extensions::ExtensionRegistry, | 90 ScopedObserver<extensions::ExtensionRegistry, |
| 91 extensions::ExtensionRegistryObserver> | 91 extensions::ExtensionRegistryObserver> |
| 92 extension_registry_observer_; | 92 extension_registry_observer_; |
| 93 ScopedObserver<apps::AppLifetimeMonitor, apps::AppLifetimeMonitor::Observer> | 93 ScopedObserver<apps::AppLifetimeMonitor, apps::AppLifetimeMonitor::Observer> |
| 94 app_lifetime_monitor_observer_; | 94 app_lifetime_monitor_observer_; |
| 95 | 95 |
| 96 base::OneShotTimer<EphemeralAppService> garbage_collect_apps_timer_; | 96 base::OneShotTimer garbage_collect_apps_timer_; |
| 97 | 97 |
| 98 // The count of cached ephemeral apps. | 98 // The count of cached ephemeral apps. |
| 99 int ephemeral_app_count_; | 99 int ephemeral_app_count_; |
| 100 | 100 |
| 101 // Number of seconds before disabling idle ephemeral apps. | 101 // Number of seconds before disabling idle ephemeral apps. |
| 102 // Overridden in tests. | 102 // Overridden in tests. |
| 103 int disable_idle_app_delay_; | 103 int disable_idle_app_delay_; |
| 104 | 104 |
| 105 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_; | 105 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_; |
| 106 | 106 |
| 107 friend class EphemeralAppServiceTest; | 107 friend class EphemeralAppServiceTest; |
| 108 friend class EphemeralAppServiceBrowserTest; | 108 friend class EphemeralAppServiceBrowserTest; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService); | 110 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ | 113 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ |
| OLD | NEW |