Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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 CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | |
| 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 namespace IPC { | |
| 10 class Message; | |
| 11 } | |
| 12 | |
| 13 // Describes interface for managing devtools agents from the browser process. | |
| 14 class DevToolsAgentHost { | |
| 15 public: | |
| 16 // Sends the message to the devtools agent hosted by this object. | |
| 17 virtual void SendMessageToAgent(IPC::Message* msg) = 0; | |
| 18 | |
| 19 // TODO(yurys): get rid of this method | |
| 20 virtual void NotifyClientClosing() = 0; | |
| 21 | |
| 22 virtual void ClientDetached() = 0; | |
| 23 | |
| 24 int routing_id() const { return routing_id_; } | |
|
pfeldman
2011/08/16 06:48:57
Could you assign routing id within agent host impl
yurys
2011/08/16 08:14:48
Done.
| |
| 25 | |
| 26 protected: | |
| 27 explicit DevToolsAgentHost(int routing_id) : routing_id_(routing_id) {} | |
| 28 virtual ~DevToolsAgentHost() {} | |
| 29 | |
| 30 private: | |
| 31 int routing_id_; | |
| 32 }; | |
|
pfeldman
2011/08/16 06:48:57
DISALLOW_COPY_AND_ASSIGN ?
yurys
2011/08/16 08:14:48
The class is abstract, no need to put the declarat
| |
| 33 | |
| 34 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ | |
| OLD | NEW |