| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/v8_inspector/inspector_backend_mojo.h" | 6 #include "sky/engine/v8_inspector/inspector_backend_mojo.h" |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "gen/sky/core/InspectorBackendDispatcher.h" | 10 #include "gen/v8_inspector/InspectorBackendDispatcher.h" |
| 11 #include "mojo/public/cpp/application/connect.h" | 11 #include "mojo/public/cpp/application/connect.h" |
| 12 #include "mojo/public/cpp/application/service_provider_impl.h" | 12 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 13 #include "mojo/public/interfaces/application/shell.mojom.h" | 13 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 14 #include "sky/engine/core/inspector/InjectedScriptHost.h" | 14 #include "sky/engine/core/inspector/InjectedScriptHost.h" |
| 15 #include "sky/engine/core/inspector/InspectorFrontendChannel.h" | |
| 16 #include "sky/engine/core/inspector/InspectorState.h" | |
| 17 #include "sky/engine/core/inspector/InstrumentingAgents.h" | |
| 18 #include "sky/engine/platform/JSONValues.h" | 15 #include "sky/engine/platform/JSONValues.h" |
| 19 #include "sky/engine/v8_inspector/inspector_host.h" | 16 #include "sky/engine/v8_inspector/InspectorFrontendChannel.h" |
| 17 #include "sky/engine/v8_inspector/InspectorState.h" |
| 18 #include "sky/engine/v8_inspector/InstrumentingAgents.h" |
| 20 #include "sky/engine/v8_inspector/PageDebuggerAgent.h" | 19 #include "sky/engine/v8_inspector/PageDebuggerAgent.h" |
| 21 #include "sky/engine/v8_inspector/PageScriptDebugServer.h" | 20 #include "sky/engine/v8_inspector/PageScriptDebugServer.h" |
| 21 #include "sky/engine/v8_inspector/inspector_host.h" |
| 22 | 22 |
| 23 namespace blink { | 23 namespace blink { |
| 24 | 24 |
| 25 class InspectorBackendMojoImpl | 25 class InspectorBackendMojoImpl |
| 26 : public InspectorFrontendChannel, | 26 : public InspectorFrontendChannel, |
| 27 public mojo::InterfaceImpl<sky::InspectorBackend> { | 27 public mojo::InterfaceImpl<sky::InspectorBackend> { |
| 28 public: | 28 public: |
| 29 explicit InspectorBackendMojoImpl(inspector::InspectorHost*); | 29 explicit InspectorBackendMojoImpl(inspector::InspectorHost*); |
| 30 ~InspectorBackendMojoImpl(); | 30 ~InspectorBackendMojoImpl(); |
| 31 | 31 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 InspectorBackendMojo::~InspectorBackendMojo() { | 160 InspectorBackendMojo::~InspectorBackendMojo() { |
| 161 } | 161 } |
| 162 | 162 |
| 163 void InspectorBackendMojo::Connect() { | 163 void InspectorBackendMojo::Connect() { |
| 164 impl_->Connect(); | 164 impl_->Connect(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 } // namespace inspector | 167 } // namespace inspector |
| OLD | NEW |