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

Side by Side Diff: content/renderer/devtools/devtools_client.h

Issue 1144393004: [DevTools] Load DevTools frontend without iframe (chromium part). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-test
Patch Set: Addressed review comments Created 5 years, 6 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 // Developer tools UI end of communication channel between the render process of 22 // Developer tools UI end of communication channel between the render process of
23 // the page being inspected and tools UI renderer process. All messages will 23 // the page being inspected and tools UI renderer process. All messages will
24 // go through browser process. On the side of the inspected page there's 24 // go through browser process. On the side of the inspected page there's
25 // corresponding DevToolsAgent object. 25 // corresponding DevToolsAgent object.
26 // TODO(yurys): now the client is almost empty later it will delegate calls to 26 // TODO(yurys): now the client is almost empty later it will delegate calls to
27 // code in glue 27 // code in glue
28 class CONTENT_EXPORT DevToolsClient 28 class CONTENT_EXPORT DevToolsClient
29 : public RenderFrameObserver, 29 : public RenderFrameObserver,
30 NON_EXPORTED_BASE(public blink::WebDevToolsFrontendClient) { 30 NON_EXPORTED_BASE(public blink::WebDevToolsFrontendClient) {
31 public: 31 public:
32 explicit DevToolsClient(RenderFrame* main_render_frame); 32 DevToolsClient(RenderFrame* main_render_frame,
33 const std::string& compatibility_script);
33 virtual ~DevToolsClient(); 34 virtual ~DevToolsClient();
34 35
35 private: 36 private:
37 // RenderFrameObserver overrides.
38 void DidClearWindowObject() override;
39
36 // WebDevToolsFrontendClient implementation. 40 // WebDevToolsFrontendClient implementation.
37 virtual void sendMessageToBackend(const blink::WebString&) override; 41 virtual void sendMessageToBackend(const blink::WebString&) override;
38 virtual void sendMessageToEmbedder(const blink::WebString&) override; 42 virtual void sendMessageToEmbedder(const blink::WebString&) override;
39 43
40 virtual bool isUnderTest() override; 44 virtual bool isUnderTest() override;
41 45
42 void OnDispatchOnInspectorFrontend(const std::string& message, 46 void OnDispatchOnInspectorFrontend(const std::string& message,
43 uint32 total_size); 47 uint32 total_size);
44 48
45 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; 49 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_;
50 std::string compatibility_script_;
46 51
47 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); 52 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
48 }; 53 };
49 54
50 } // namespace content 55 } // namespace content
51 56
52 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ 57 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/devtools/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698