blob: e660b4b5842d072d6631671f89d2007036aab266 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DIRECT_SOCKETS_CHROME_DIRECT_SOCKETS_DELEGATE_H_
#define CHROME_BROWSER_DIRECT_SOCKETS_CHROME_DIRECT_SOCKETS_DELEGATE_H_
#include "content/public/browser/direct_sockets_delegate.h"
class ChromeDirectSocketsDelegate : public content::DirectSocketsDelegate {
public:
// content::DirectSocketsDelegate:
bool ValidateAddressAndPort(
content::BrowserContext* browser_context,
const GURL& lock_url,
const std::string& address,
uint16_t port,
blink::mojom::DirectSocketProtocolType protocol) const override;
};
#endif // CHROME_BROWSER_DIRECT_SOCKETS_CHROME_DIRECT_SOCKETS_DELEGATE_H_