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

Unified Diff: chrome/browser/ui/ash/ash_util.h

Issue 2695803004: Make browser process a singleton service (Closed)
Patch Set: . Created 3 years, 10 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 | « chrome/browser/prefs/preferences_connection_manager.cc ('k') | chrome/browser/ui/ash/ash_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/ash_util.h
diff --git a/chrome/browser/ui/ash/ash_util.h b/chrome/browser/ui/ash/ash_util.h
index 110482e91d0f84b492001a1eea459ff660df414a..8f9054424507d40e49441f52225a4b630f20d627 100644
--- a/chrome/browser/ui/ash/ash_util.h
+++ b/chrome/browser/ui/ash/ash_util.h
@@ -5,6 +5,15 @@
#ifndef CHROME_BROWSER_UI_ASH_ASH_UTIL_H_
#define CHROME_BROWSER_UI_ASH_ASH_UTIL_H_
+#include <memory>
+
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
+
+namespace service_manager {
+class Service;
+}
+
namespace ui {
class Accelerator;
} // namespace ui
@@ -15,6 +24,11 @@ namespace ash_util {
// running in classic ash or mash.
const char* GetAshServiceName();
+// Creates an in-process Service instance of which can host common ash
+// interfaces.
+std::unique_ptr<service_manager::Service> CreateEmbeddedAshService(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+
} // namespace ash_util
// TODO(jamescook): Change this namespace to ash_util.
« no previous file with comments | « chrome/browser/prefs/preferences_connection_manager.cc ('k') | chrome/browser/ui/ash/ash_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698