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

Unified Diff: components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.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 side-by-side diff with in-line comments
Download patch
Index: components/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/components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
deleted file mode 100644
index b42137dbdbf7faf9dbf94d95a71bbe95f6400050..0000000000000000000000000000000000000000
--- a/components/arc/boot_phase_monitor/arc_boot_phase_monitor_bridge.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// 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_
-
-#include "base/macros.h"
-#include "base/threading/thread_checker.h"
-#include "components/arc/arc_service.h"
-#include "components/arc/common/boot_phase_monitor.mojom.h"
-#include "components/arc/instance_holder.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace arc {
-
-class ArcBridgeService;
-
-// Receives boot phase notifications from ARC.
-class ArcBootPhaseMonitorBridge
- : public ArcService,
- public InstanceHolder<mojom::BootPhaseMonitorInstance>::Observer,
- public mojom::BootPhaseMonitorHost {
- public:
- explicit ArcBootPhaseMonitorBridge(ArcBridgeService* bridge_service);
- ~ArcBootPhaseMonitorBridge() override;
-
- // InstanceHolder<mojom::BootPhaseMonitorInstance>::Observer
- void OnInstanceReady() override;
- void OnInstanceClosed() override;
-
- // mojom::BootPhaseMonitorHost
- void OnBootCompleted() override;
-
- private:
- mojo::Binding<mojom::BootPhaseMonitorHost> binding_;
-
- base::ThreadChecker thread_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(ArcBootPhaseMonitorBridge);
-};
-
-} // namespace arc
-
-#endif // COMPONENTS_ARC_BOOT_PHASE_MONITOR_ARC_BOOT_PHASE_MONITOR_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698