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

Unified Diff: content/app/content_service_manager_main_delegate.h

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order Created 3 years, 9 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 | « content/app/content_main_runner.cc ('k') | content/app/content_service_manager_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_service_manager_main_delegate.h
diff --git a/content/app/content_service_manager_main_delegate.h b/content/app/content_service_manager_main_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f8f6a49c4e40b6058063751b59edd4fbbd1deb7
--- /dev/null
+++ b/content/app/content_service_manager_main_delegate.h
@@ -0,0 +1,42 @@
+// Copyright 2017 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 CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_
+#define CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "build/build_config.h"
+#include "content/public/app/content_main.h"
+#include "services/service_manager/embedder/main_delegate.h"
+
+namespace content {
+
+class ContentMainRunner;
+
+class ContentServiceManagerMainDelegate : public service_manager::MainDelegate {
+ public:
+ ContentServiceManagerMainDelegate(const ContentMainParams& params);
+ ~ContentServiceManagerMainDelegate() override;
+
+ // service_manager::MainDelegate:
+ int Initialize(const InitializeParams& params) override;
+ int Run() override;
+ void ShutDown() override;
+
+ private:
+ ContentMainParams content_main_params_;
+ std::unique_ptr<ContentMainRunner> content_main_runner_;
+
+#if defined(OS_ANDROID)
+ bool initialized_ = false;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(ContentServiceManagerMainDelegate);
+};
+
+} // namespace content
+
+#endif // CONTENT_APP_CONTENT_SERVICE_MANAGER_MAIN_DELEGATE_H_
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/app/content_service_manager_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698