Clean up extension confirmation prompts and make them consistent between Views and...
[chromium-blink-merge.git] / components / devtools_service / devtools_service_delegate.h
blob93dc99397c94361acc0719a44387fc0cb68db5e9
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_
6 #define COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/devtools_service/public/interfaces/devtools_service.mojom.h"
11 #include "mojo/application/public/cpp/application_delegate.h"
12 #include "mojo/application/public/cpp/interface_factory.h"
14 namespace devtools_service {
16 class DevToolsService;
18 class DevToolsServiceDelegate
19 : public mojo::ApplicationDelegate,
20 public mojo::InterfaceFactory<DevToolsRegistry>,
21 public mojo::InterfaceFactory<DevToolsCoordinator> {
22 public:
23 DevToolsServiceDelegate();
24 ~DevToolsServiceDelegate() override;
26 private:
27 // mojo::ApplicationDelegate implementation.
28 void Initialize(mojo::ApplicationImpl* app) override;
29 bool ConfigureIncomingConnection(
30 mojo::ApplicationConnection* connection) override;
31 void Quit() override;
33 // mojo::InterfaceFactory<DevToolsRegistry> implementation.
34 void Create(mojo::ApplicationConnection* connection,
35 mojo::InterfaceRequest<DevToolsRegistry> request) override;
37 // mojo::InterfaceFactory<DevToolsCoordinator> implementation.
38 void Create(mojo::ApplicationConnection* connection,
39 mojo::InterfaceRequest<DevToolsCoordinator> request) override;
41 scoped_ptr<DevToolsService> service_;
43 DISALLOW_COPY_AND_ASSIGN(DevToolsServiceDelegate);
46 } // namespace devtools_service
48 #endif // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_