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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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
« no previous file with comments | « content/renderer/devtools_agent_filter.cc ('k') | content/renderer/devtools_client.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 (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_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_DEVTOOLS_CLIENT_H_
6 #define CONTENT_RENDERER_DEVTOOLS_CLIENT_H_ 6 #define CONTENT_RENDERER_DEVTOOLS_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl ient.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl ient.h"
14 14
15 class RenderViewImpl;
16
17 namespace WebKit { 15 namespace WebKit {
18 class WebDevToolsFrontend; 16 class WebDevToolsFrontend;
19 class WebString; 17 class WebString;
20 } 18 }
21 19
20 namespace content {
21
22 class RenderViewImpl;
23
22 // Developer tools UI end of communication channel between the render process of 24 // 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 25 // 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 26 // go through browser process. On the side of the inspected page there's
25 // corresponding DevToolsAgent object. 27 // corresponding DevToolsAgent object.
26 // 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
27 // code in glue 29 // code in glue
28 class DevToolsClient : public content::RenderViewObserver, 30 class DevToolsClient : public RenderViewObserver,
29 public WebKit::WebDevToolsFrontendClient { 31 public WebKit::WebDevToolsFrontendClient {
30 public: 32 public:
31 explicit DevToolsClient(RenderViewImpl* render_view); 33 explicit DevToolsClient(RenderViewImpl* render_view);
32 virtual ~DevToolsClient(); 34 virtual ~DevToolsClient();
33 35
34 private: 36 private:
35 // RenderView::Observer implementation. 37 // RenderView::Observer implementation.
36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
37 39
38 // WebDevToolsFrontendClient implementation. 40 // WebDevToolsFrontendClient implementation.
(...skipping 13 matching lines...) Expand all
52 const WebKit::WebString& content) OVERRIDE; 54 const WebKit::WebString& content) OVERRIDE;
53 55
54 void OnDispatchOnInspectorFrontend(const std::string& message); 56 void OnDispatchOnInspectorFrontend(const std::string& message);
55 57
56 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; 58 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_;
57 std::string last_dock_side_; 59 std::string last_dock_side_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); 61 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
60 }; 62 };
61 63
64 } // namespace content
65
62 #endif // CONTENT_RENDERER_DEVTOOLS_CLIENT_H_ 66 #endif // CONTENT_RENDERER_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools_agent_filter.cc ('k') | content/renderer/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698