blob: a971b751160ad6af5b74167ad28b60a31fad1d6f [file] [log] [blame]
// Copyright 2016 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 "base/process/kill.h"
#include "content/common/content_export.h"
namespace content {
class DevToolsAgentHost;
// Observer API notifies interested parties about changes in DevToolsAgentHosts.
class CONTENT_EXPORT DevToolsAgentHostObserver {
virtual ~DevToolsAgentHostObserver();
// If observer returns |true|, DevToolsAgentHost instances are created
// (and reported in DevToolsAgentHostCreated) for every possible devtools
// target (e.g. WebContents).
virtual bool ShouldForceDevToolsAgentHostCreation();
// Called when DevToolsAgentHost was created and is ready to be used.
virtual void DevToolsAgentHostCreated(DevToolsAgentHost* agent_host);
// Called when DevToolsAgentHost was created and is ready to be used.
virtual void DevToolsAgentHostNavigated(DevToolsAgentHost* agent_host);
// Called when client has attached to DevToolsAgentHost.
virtual void DevToolsAgentHostAttached(DevToolsAgentHost* agent_host);
// Called when client has detached from DevToolsAgentHost.
virtual void DevToolsAgentHostDetached(DevToolsAgentHost* agent_host);
// Called when DevToolsAgentHost crashed.
virtual void DevToolsAgentHostCrashed(DevToolsAgentHost* agent_host,
base::TerminationStatus status);
// Called when DevToolsAgentHost was destroyed.
virtual void DevToolsAgentHostDestroyed(DevToolsAgentHost* agent_host);
} // namespace content