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

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

Issue 444633003: Revert of [DevTools] Move DispatchOnDevToolsFrontend to embedder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 17 matching lines...) Expand all
28 // TODO(yurys): now the client is almost empty later it will delegate calls to 28 // TODO(yurys): now the client is almost empty later it will delegate calls to
29 // code in glue 29 // code in glue
30 class CONTENT_EXPORT DevToolsClient 30 class CONTENT_EXPORT DevToolsClient
31 : public RenderViewObserver, 31 : public RenderViewObserver,
32 NON_EXPORTED_BASE(public blink::WebDevToolsFrontendClient) { 32 NON_EXPORTED_BASE(public blink::WebDevToolsFrontendClient) {
33 public: 33 public:
34 explicit DevToolsClient(RenderViewImpl* render_view); 34 explicit DevToolsClient(RenderViewImpl* render_view);
35 virtual ~DevToolsClient(); 35 virtual ~DevToolsClient();
36 36
37 private: 37 private:
38 // RenderView::Observer implementation.
39 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
40
38 // WebDevToolsFrontendClient implementation. 41 // WebDevToolsFrontendClient implementation.
39 virtual void sendMessageToBackend(const blink::WebString&) OVERRIDE; 42 virtual void sendMessageToBackend(const blink::WebString&) OVERRIDE;
40 virtual void sendMessageToEmbedder(const blink::WebString&) OVERRIDE; 43 virtual void sendMessageToEmbedder(const blink::WebString&) OVERRIDE;
41 44
42 virtual bool isUnderTest() OVERRIDE; 45 virtual bool isUnderTest() OVERRIDE;
43 46
44 void OnDispatchOnInspectorFrontend(const std::string& message); 47 void OnDispatchOnInspectorFrontend(const std::string& message);
45 48
46 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; 49 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_;
47 50
48 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); 51 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
49 }; 52 };
50 53
51 } // namespace content 54 } // namespace content
52 55
53 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ 56 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/devtools_frontend_host.h ('k') | content/renderer/devtools/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698