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

Side by Side Diff: sky/engine/v8_inspector/inspector_backend_mojo.h

Issue 749523002: Move inspector_backend_mojo.cc to v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « sky/engine/v8_inspector/BUILD.gn ('k') | sky/engine/v8_inspector/inspector_backend_mojo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_ 5 #ifndef SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_
6 #define SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_ 6 #define SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "core/inspector/InspectorFrontendChannel.h" 9 #include "core/inspector/InspectorFrontendChannel.h"
10 #include "sky/services/inspector/inspector.mojom.h" 10 #include "sky/services/inspector/inspector.mojom.h"
11 11
12 namespace blink { 12 namespace blink {
13 class FrameHost; 13 class FrameHost;
14 class InspectorBackendDispatcher; 14 class InspectorBackendDispatcher;
15 class JSONObject; 15 class JSONObject;
16 class PageDebuggerAgent; 16 class PageDebuggerAgent;
17 class InjectedScriptManager; 17 class InjectedScriptManager;
18 class InspectorState; 18 class InspectorState;
19 class InstrumentingAgents; 19 class InstrumentingAgents;
20 class InspectorFrontend; 20 class InspectorFrontend;
21 21
22 class InspectorBackendMojo : public mojo::InterfaceImpl<sky::InspectorBackend>, 22 class InspectorBackendMojo : public mojo::InterfaceImpl<sky::InspectorBackend>,
23 public InspectorFrontendChannel { 23 public InspectorFrontendChannel {
24 public: 24 public:
25 explicit InspectorBackendMojo(const FrameHost& frame_host); 25 explicit InspectorBackendMojo(const FrameHost& frame_host);
26 ~InspectorBackendMojo(); 26 ~InspectorBackendMojo();
27 27
28 void Connect(); 28 void Connect();
29 29
30 private: 30 private:
31 // InspectorBackend: 31 // InspectorBackend:
32 void OnConnect() override; 32 void OnConnect() override;
33 void OnDisconnect() override; 33 void OnDisconnect() override;
34 void OnMessage(const mojo::String& message) override; 34 void OnMessage(const mojo::String& message) override;
35 35
36 // InspectorFrontendChannel: 36 // InspectorFrontendChannel:
37 void sendMessageToFrontend(PassRefPtr<JSONObject> message) override; 37 void sendMessageToFrontend(PassRefPtr<JSONObject> message) override;
38 void flush() override; 38 void flush() override;
39 39
40 const FrameHost& frame_host_; 40 const FrameHost& frame_host_;
41 41
42 sky::InspectorFrontendPtr frontend_; 42 sky::InspectorFrontendPtr frontend_;
43 43
44 OwnPtr<InspectorFrontend> old_frontend_; 44 OwnPtr<InspectorFrontend> old_frontend_;
45 RefPtr<InspectorBackendDispatcher> dispatcher_; 45 RefPtr<InspectorBackendDispatcher> dispatcher_;
46 OwnPtr<PageDebuggerAgent> debugger_agent_; 46 OwnPtr<PageDebuggerAgent> debugger_agent_;
47 OwnPtr<InjectedScriptManager> script_manager_; 47 OwnPtr<InjectedScriptManager> script_manager_;
48 OwnPtr<InspectorState> inspector_state_; 48 OwnPtr<InspectorState> inspector_state_;
49 OwnPtr<InstrumentingAgents> agents_; 49 OwnPtr<InstrumentingAgents> agents_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(InspectorBackendMojo); 51 DISALLOW_COPY_AND_ASSIGN(InspectorBackendMojo);
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_ 56 #endif // SKY_ENGINE_INSPECTOR_INSPECTOR_BACKEND_MOJO_H_
OLDNEW
« no previous file with comments | « sky/engine/v8_inspector/BUILD.gn ('k') | sky/engine/v8_inspector/inspector_backend_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698