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

Unified Diff: chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h

Issue 2624513004: Prioritize ARC instance only when it is needed (Closed)
Patch Set: address comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
diff --git a/components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h b/chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
similarity index 76%
rename from components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
rename to chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
index b42137dbdbf7faf9dbf94d95a71bbe95f6400050..407f450bc13c9a52bc284a26da4e133cdf0048f9 100644
--- a/components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
+++ b/chrome/browser/chromeos/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_
-#define COMPONENTS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_
+#ifndef CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_
+
+#include <memory>
#include "base/macros.h"
#include "base/threading/thread_checker.h"
@@ -15,6 +17,7 @@
namespace arc {
class ArcBridgeService;
+class ArcInstanceThrottle;
// Receives boot phase notifications from ARC.
class ArcBootPhaseMonitorBridge
@@ -34,6 +37,7 @@ class ArcBootPhaseMonitorBridge
private:
mojo::Binding<mojom::BootPhaseMonitorHost> binding_;
+ std::unique_ptr<ArcInstanceThrottle> throttle_;
base::ThreadChecker thread_checker_;
@@ -42,4 +46,4 @@ class ArcBootPhaseMonitorBridge
} // namespace arc
-#endif // COMPONENTS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_
+#endif // CHROME_BROWSER_CHROMEOS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698