Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: sky/engine/core/inspector/inspector_backend_mojo.h

Issue 727593004: Wire up the Inspector V8 Debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Actually works Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/inspector/inspector_backend_mojo.h
diff --git a/sky/engine/core/inspector/inspector_backend_mojo.h b/sky/engine/core/inspector/inspector_backend_mojo.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee0b7d8fb2d7519f68bf978fd334b0397f1e8b95
--- /dev/null
+++ b/sky/engine/core/inspector/inspector_backend_mojo.h
@@ -0,0 +1,56 @@
+// Copyright 2014 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 SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_
+#define SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_
+
+#include "base/basictypes.h"
+#include "core/inspector/InspectorFrontendChannel.h"
+#include "sky/services/inspector/inspector.mojom.h"
+
+namespace blink {
+class FrameHost;
+class InspectorBackendDispatcher;
+class JSONObject;
+class PageDebuggerAgent;
+class InjectedScriptManager;
+class InspectorState;
+class InstrumentingAgents;
+class InspectorFrontend;
+
+class InspectorBackendMojo : public mojo::InterfaceImpl<sky::InspectorBackend>,
+ public InspectorFrontendChannel {
+public:
+ explicit InspectorBackendMojo(const FrameHost& frame_host);
+ ~InspectorBackendMojo();
+
+ void Connect();
+
+private:
+ // InspectorBackend:
+ void OnConnect() override;
+ void OnDisconnect() override;
+ void OnMessage(const mojo::String& message) override;
+
+ // InspectorFrontendChannel:
+ void sendMessageToFrontend(PassRefPtr<JSONObject> message) override;
+ void flush() override;
+
+ const FrameHost& frame_host_;
+
+ sky::InspectorFrontendPtr frontend_;
+
+ OwnPtr<InspectorFrontend> old_frontend_;
+ RefPtr<InspectorBackendDispatcher> dispatcher_;
+ OwnPtr<PageDebuggerAgent> debugger_agent_;
+ OwnPtr<InjectedScriptManager> script_manager_;
+ OwnPtr<InspectorState> inspector_state_;
+ OwnPtr<InstrumentingAgents> agents_;
+
+ DISALLOW_COPY_AND_ASSIGN(InspectorBackendMojo);
+};
+
+} // namespace blink
+
+#endif // SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_

Powered by Google App Engine
This is Rietveld 408576698