chromium/content/public/browser/devtools_agent_host_client.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/public/browser/devtools_agent_host_client.h"

namespace content {

bool DevToolsAgentHostClient::MayAttachToRenderFrameHost(
    RenderFrameHost* render_frame_host) {}

bool DevToolsAgentHostClient::MayAttachToURL(const GURL& url, bool is_webui) {}

// Defaults to true, restricted clients must override this to false.
bool DevToolsAgentHostClient::IsTrusted() {}

// File access is allowed by default, only restricted clients that represent
// not entirely trusted protocol peers override this to false.
bool DevToolsAgentHostClient::MayReadLocalFiles() {}

bool DevToolsAgentHostClient::MayWriteLocalFiles() {}

bool DevToolsAgentHostClient::UsesBinaryProtocol() {}

// Only clients that already have powers of local code execution should override
// this to true.
bool DevToolsAgentHostClient::AllowUnsafeOperations() {}

std::optional<url::Origin>
DevToolsAgentHostClient::GetNavigationInitiatorOrigin() {}

std::string DevToolsAgentHostClient::GetTypeForMetrics() {}

}  // namespace content