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

Unified Diff: components/arc/arc_bridge_service_impl.h

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)
Patch Set: Add StopArcInstance Created 4 years, 2 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
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service_impl.h
diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h
index 7f92c68c18ae6f14224856a0e378d423fab4f63d..8d89e32722fcbeef9ba8693ce32097eab55af990 100644
--- a/components/arc/arc_bridge_service_impl.h
+++ b/components/arc/arc_bridge_service_impl.h
@@ -12,6 +12,8 @@
#include "base/files/scoped_file.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/task_runner.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_session.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -31,12 +33,14 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
// for testing purpose.
using ArcSessionFactory = base::Callback<std::unique_ptr<ArcSession>()>;
- ArcBridgeServiceImpl();
+ explicit ArcBridgeServiceImpl(
+ const scoped_refptr<base::TaskRunner>& blocking_task_runner);
~ArcBridgeServiceImpl() override;
- void HandleStartup() override;
-
- void Shutdown() override;
+ // ArcBridgeService overrides:
+ void RequestStart() override;
+ void RequestStop() override;
+ void OnShutdown() override;
// Inject a factory to create ArcSession instance for testing purpose.
// |factory| must not be null.
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698