Chromium Code Reviews| Index: content/browser/debugger/devtools_agent_host.h |
| diff --git a/content/browser/debugger/devtools_agent_host.h b/content/browser/debugger/devtools_agent_host.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..71b7f176ec19626bf0025aaf16886c4cfd187ac7 |
| --- /dev/null |
| +++ b/content/browser/debugger/devtools_agent_host.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
| +#define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |
| +#pragma once |
| + |
| +namespace IPC { |
| +class Message; |
| +} |
| + |
| +// Describes interface for managing devtools agents from the browser process. |
| +class DevToolsAgentHost { |
| + public: |
| + // Sends the message to the devtools agent hosted by this object. |
| + virtual void SendMessageToAgent(IPC::Message* msg) = 0; |
| + |
| + // TODO(yurys): get rid of this method |
| + virtual void NotifyClientClosing() = 0; |
| + |
| + virtual void ClientDetached() = 0; |
| + |
| + 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.
|
| + |
| + protected: |
| + explicit DevToolsAgentHost(int routing_id) : routing_id_(routing_id) {} |
| + virtual ~DevToolsAgentHost() {} |
| + |
| + private: |
| + int routing_id_; |
| +}; |
|
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
|
| + |
| +#endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_AGENT_HOST_H_ |