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

Unified Diff: content/browser/service_manager/service_manager_context.h

Issue 2510033002: [Device Service] Move PowerMonitor into the Device Service (Closed)
Patch Set: Move registeration of device service to content::ServiceManagerContext Created 3 years, 12 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: content/browser/service_manager/service_manager_context.h
diff --git a/content/browser/service_manager/service_manager_context.h b/content/browser/service_manager/service_manager_context.h
index d2c025c12b4b46bf91f7c82ece6363445d48fdcf..b5001cdde1618458d13315a1b43efe4bc83c88bf 100644
--- a/content/browser/service_manager/service_manager_context.h
+++ b/content/browser/service_manager/service_manager_context.h
@@ -5,11 +5,14 @@
#ifndef CONTENT_BROWSER_SERVICE_MANAGER_SERVICE_MANAGER_CONTEXT_H_
#define CONTENT_BROWSER_SERVICE_MANAGER_SERVICE_MANAGER_CONTEXT_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
namespace service_manager {
+class Connection;
class Connector;
}
@@ -31,6 +34,12 @@ class CONTENT_EXPORT ServiceManagerContext {
scoped_refptr<InProcessServiceManagerContext> in_process_context_;
+ // A connection to device service, will be set up on startup to trigger
+ // creating a device service instance beforehand, as device service is
+ // singletion service, later the same instance will serve all the clients
+ // wanting to connect to device service.
+ std::unique_ptr<service_manager::Connection> device_connection_;
+
DISALLOW_COPY_AND_ASSIGN(ServiceManagerContext);
};

Powered by Google App Engine
This is Rietveld 408576698