| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ | 5 #ifndef COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ |
| 6 #define COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ | 6 #define COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "components/devtools_service/public/interfaces/devtools_service.mojom.h
" | 10 #include "components/devtools_service/public/interfaces/devtools_service.mojom.h
" |
| 11 #include "mojo/application/public/cpp/application_delegate.h" | 11 #include "mojo/shell/public/cpp/application_delegate.h" |
| 12 #include "mojo/application/public/cpp/interface_factory.h" | 12 #include "mojo/shell/public/cpp/interface_factory.h" |
| 13 | 13 |
| 14 namespace devtools_service { | 14 namespace devtools_service { |
| 15 | 15 |
| 16 class DevToolsService; | 16 class DevToolsService; |
| 17 | 17 |
| 18 class DevToolsServiceDelegate | 18 class DevToolsServiceDelegate |
| 19 : public mojo::ApplicationDelegate, | 19 : public mojo::ApplicationDelegate, |
| 20 public mojo::InterfaceFactory<DevToolsRegistry>, | 20 public mojo::InterfaceFactory<DevToolsRegistry>, |
| 21 public mojo::InterfaceFactory<DevToolsCoordinator> { | 21 public mojo::InterfaceFactory<DevToolsCoordinator> { |
| 22 public: | 22 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 39 mojo::InterfaceRequest<DevToolsCoordinator> request) override; | 39 mojo::InterfaceRequest<DevToolsCoordinator> request) override; |
| 40 | 40 |
| 41 scoped_ptr<DevToolsService> service_; | 41 scoped_ptr<DevToolsService> service_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(DevToolsServiceDelegate); | 43 DISALLOW_COPY_AND_ASSIGN(DevToolsServiceDelegate); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace devtools_service | 46 } // namespace devtools_service |
| 47 | 47 |
| 48 #endif // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ | 48 #endif // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_SERVICE_DELEGATE_H_ |
| OLD | NEW |