| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.h
" | 5 #include "chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.h
" |
| 6 | 6 |
| 7 #include "ash/common/wm_shell.h" | |
| 8 #include "ash/common/wm_window.h" | |
| 9 #include "ash/shared/app_types.h" | 7 #include "ash/shared/app_types.h" |
| 8 #include "ash/wm_shell.h" |
| 9 #include "ash/wm_window.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
| 13 #include "chromeos/dbus/session_manager_client.h" | 13 #include "chromeos/dbus/session_manager_client.h" |
| 14 | 14 |
| 15 namespace arc { | 15 namespace arc { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 void OnDBusReply(login_manager::ContainerCpuRestrictionState state, | 19 void OnDBusReply(login_manager::ContainerCpuRestrictionState state, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 if (shell) | 61 if (shell) |
| 62 shell->RemoveActivationObserver(this); | 62 shell->RemoveActivationObserver(this); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void ArcInstanceThrottle::OnWindowActivated(ash::WmWindow* gained_active, | 65 void ArcInstanceThrottle::OnWindowActivated(ash::WmWindow* gained_active, |
| 66 ash::WmWindow* lost_active) { | 66 ash::WmWindow* lost_active) { |
| 67 ThrottleInstanceIfNeeded(gained_active); | 67 ThrottleInstanceIfNeeded(gained_active); |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace arc | 70 } // namespace arc |
| OLD | NEW |