| 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 "v8_inspector/inspector_backend_mojo.h" | 6 #include "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/sky/core/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/bindings/core/v8/PageScriptDebugServer.h" | |
| 15 #include "sky/engine/core/inspector/InspectorFrontendChannel.h" | 14 #include "sky/engine/core/inspector/InspectorFrontendChannel.h" |
| 16 #include "sky/engine/core/inspector/InspectorState.h" | 15 #include "sky/engine/core/inspector/InspectorState.h" |
| 17 #include "sky/engine/core/inspector/InstrumentingAgents.h" | 16 #include "sky/engine/core/inspector/InstrumentingAgents.h" |
| 18 #include "sky/engine/core/inspector/PageDebuggerAgent.h" | |
| 19 #include "sky/engine/platform/JSONValues.h" | 17 #include "sky/engine/platform/JSONValues.h" |
| 20 #include "sky/engine/v8_inspector/inspector_host.h" | 18 #include "sky/engine/v8_inspector/inspector_host.h" |
| 19 #include "sky/engine/v8_inspector/PageDebuggerAgent.h" |
| 20 #include "sky/engine/v8_inspector/PageScriptDebugServer.h" |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 class InspectorBackendMojoImpl | 24 class InspectorBackendMojoImpl |
| 25 : public InspectorFrontendChannel, | 25 : public InspectorFrontendChannel, |
| 26 public mojo::InterfaceImpl<sky::InspectorBackend> { | 26 public mojo::InterfaceImpl<sky::InspectorBackend> { |
| 27 public: | 27 public: |
| 28 explicit InspectorBackendMojoImpl(inspector::InspectorHost*); | 28 explicit InspectorBackendMojoImpl(inspector::InspectorHost*); |
| 29 ~InspectorBackendMojoImpl(); | 29 ~InspectorBackendMojoImpl(); |
| 30 | 30 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 140 } |
| 141 | 141 |
| 142 InspectorBackendMojo::~InspectorBackendMojo() { | 142 InspectorBackendMojo::~InspectorBackendMojo() { |
| 143 } | 143 } |
| 144 | 144 |
| 145 void InspectorBackendMojo::Connect() { | 145 void InspectorBackendMojo::Connect() { |
| 146 impl_->Connect(); | 146 impl_->Connect(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 } // namespace inspector | 149 } // namespace inspector |
| OLD | NEW |