Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.h

Issue 2624513004: Prioritize ARC instance only when it is needed (Closed)
Patch Set: review Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_INSTANCE_THROTTLE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_INSTANCE_THROTTLE_H_
7
8 #include "ash/common/wm_activation_observer.h"
9 #include "base/macros.h"
10
11 namespace arc {
12
13 // A class that watches window activations and throttle the ARC instance when
Luis Héctor Chávez 2017/01/11 00:07:28 nit: s/throttle/throttles/
Yusuke Sato 2017/01/11 00:31:55 Done.
14 // needed.
Luis Héctor Chávez 2017/01/11 00:07:28 maybe expand this comment a bit and mention that A
Yusuke Sato 2017/01/11 00:31:55 Done. Re class name, chatted offline and decided t
15 class ArcInstanceThrottle : public ash::WmActivationObserver {
Luis Héctor Chávez 2017/01/11 00:07:28 Maybe "Throttler"? I've seen that Throttle has a d
Luis Héctor Chávez 2017/01/11 00:10:19 Hah, TIL that Throttle is the correct word and we'
16 public:
17 ArcInstanceThrottle();
18 ~ArcInstanceThrottle() override;
19
20 // ash::WmActivationObserver overrides:
21 void OnWindowActivated(ash::WmWindow* gained_active,
22 ash::WmWindow* lost_active) override;
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(ArcInstanceThrottle);
26 };
27
28 } // namespace arc
29
30 #endif // CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_INSTANCE_THROTTLE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698