| 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_
|
|
|