1 // Copyright 2014 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.
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_
10 #include "base/basictypes.h"
11 #include "content/common/content_export.h"
15 class DevToolsAgentHost
;
17 // DevToolsAgentHostClient can attach to a DevToolsAgentHost and start
19 class CONTENT_EXPORT DevToolsAgentHostClient
{
21 virtual ~DevToolsAgentHostClient() {}
23 // Dispatches given protocol message on the client.
24 virtual void DispatchProtocolMessage(DevToolsAgentHost
* agent_host
,
25 const std::string
& message
) = 0;
27 // This method is called when attached agent host is closed.
28 virtual void AgentHostClosed(DevToolsAgentHost
* agent_host
,
29 bool replaced_with_another_client
) = 0;
32 } // namespace content
34 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_AGENT_HOST_CLIENT_H_