blob: 90d7a73595266bf313c7ff10dad41b17a1180bd8 [file] [log] [blame]
// Copyright 2014 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.
#include <string>
#include "base/basictypes.h"
#include "content/common/content_export.h"
namespace content {
class DevToolsAgentHost;
// DevToolsAgentHostClient can attach to a DevToolsAgentHost and start
// debugging it.
class CONTENT_EXPORT DevToolsAgentHostClient {
virtual ~DevToolsAgentHostClient() {}
// Dispatches given protocol message on the client.
virtual void DispatchProtocolMessage(DevToolsAgentHost* agent_host,
const std::string& message) = 0;
// This method is called when attached agent host is closed.
virtual void AgentHostClosed(DevToolsAgentHost* agent_host,
bool replaced_with_another_client) = 0;
} // namespace content