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

Side by Side Diff: chrome/renderer/dev_tools_client.h

Issue 21543: Add developer tools message handling to renderer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/renderer/dev_tools_agent.cc ('k') | chrome/renderer/dev_tools_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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_DEV_TOOLS_CLIENT_H_
6 #define CHROME_RENDERER_DEV_TOOLS_CLIENT_H_
7
8 #include "base/basictypes.h"
9
10 namespace IPC {
11 class Message;
12 }
13 class MessageLoop;
14 class RenderView;
15
16 // Developer tools UI end of communication channel between the render process of
17 // the page being inspected and tools UI renderer process. All messages will
18 // go through browser process. On the side of the inspected page there's
19 // corresponding DevToolsAgent object.
20 // TODO(yurys): now the client is almost empty later it will delegate calls to
21 // code in glue
22 class DevToolsClient {
23 public:
24 explicit DevToolsClient(RenderView* view);
25 virtual ~DevToolsClient();
26
27 // Called to possibly handle the incoming IPC message. Returns true if
28 // handled. Called in render thread.
29 bool OnMessageReceived(const IPC::Message& message);
30
31 private:
32 void DidDebugAttach();
33
34 // Sends message to DevToolsAgent.
35 void Send(const IPC::Message& tools_agent_message);
36
37 RenderView* render_view_; // host render view
38
39 DISALLOW_COPY_AND_ASSIGN(DevToolsClient);
40 };
41
42 #endif // CHROME_RENDERER_DEV_TOOLS_CLIENT_H_
43
OLDNEW
« no previous file with comments | « chrome/renderer/dev_tools_agent.cc ('k') | chrome/renderer/dev_tools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698