| OLD | NEW |
| (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 |
| OLD | NEW |