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

Unified Diff: services/blamer/blamer_service.h

Issue 2885363004: [Hacky prototype] Create a shared-memory high-performance reporting service.
Patch Set: Created 3 years, 7 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: services/blamer/blamer_service.h
diff --git a/services/blamer/blamer_service.h b/services/blamer/blamer_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..ad5e62181fe5d3978f48929e9b8d54ed0036a980
--- /dev/null
+++ b/services/blamer/blamer_service.h
@@ -0,0 +1,35 @@
+// 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 SERVICES_BLAMER_BLAMER_SERVICE_H_
+#define SERVICES_BLAMER_BLAMER_SERVICE_H_
+
+#include "base/memory/weak_ptr.h"
+#include "services/service_manager/public/cpp/service.h"
+#include "services/service_manager/public/cpp/service_context_ref.h"
+
+namespace blamer {
+
+class BlamerService : public service_manager::Service {
+ public:
+ BlamerService();
+ ~BlamerService() override;
+
+ // service_manager::Service:
+ static std::unique_ptr<service_manager::Service> Create();
+ void OnStart() override;
+ bool OnConnect(const service_manager::ServiceInfo& remote_info,
+ service_manager::InterfaceRegistry* registry) override;
+
+ private:
+
+ std::unique_ptr<service_manager::ServiceContextRefFactory> ref_factory_;
+ base::WeakPtrFactory<BlamerService> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlamerService);
+};
+
+} // namespace blamer
+
+#endif // SERVICES_BLAMER_BLAMER_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698