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

Unified Diff: chrome/browser/chromeos/arc/arc_service_launcher.h

Issue 2531543003: Resolve initialize/destory order between ArcService and ArcSessionManager. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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 | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/arc/arc_service_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_service_launcher.h
diff --git a/chrome/browser/chromeos/arc/arc_service_launcher.h b/chrome/browser/chromeos/arc/arc_service_launcher.h
index 7d912bbb5dc1bfcd7f89bd5841e078a36949af1a..8fef6c1ab26185306e6f05b1c5b424177e1d313e 100644
--- a/chrome/browser/chromeos/arc/arc_service_launcher.h
+++ b/chrome/browser/chromeos/arc/arc_service_launcher.h
@@ -8,21 +8,36 @@
#include <memory>
#include "base/macros.h"
-#include "components/arc/arc_service_manager.h"
+
+class Profile;
namespace arc {
+class ArcServiceManager;
+class ArcSessionManager;
+
// Detects ARC availability and launches ARC bridge service.
class ArcServiceLauncher {
public:
ArcServiceLauncher();
~ArcServiceLauncher();
+ // This is to access OnPrimaryUserProfilePrepared() only.
+ static ArcServiceLauncher* Get();
+
+ // Called before the main MessageLooop starts.
void Initialize();
+
+ // Called after the main MessageLoop stops, but before the Profile is
+ // destroyed.
void Shutdown();
+ // Called when the main profile is initialized after user logs in.
+ void OnPrimaryUserProfilePrepared(Profile* profile);
+
private:
std::unique_ptr<ArcServiceManager> arc_service_manager_;
+ std::unique_ptr<ArcSessionManager> arc_session_manager_;
DISALLOW_COPY_AND_ASSIGN(ArcServiceLauncher);
};
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/arc/arc_service_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698