#include "chrome/browser/direct_sockets/chrome_direct_sockets_delegate.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/common/socket_permission_request.h"
#include "extensions/browser/process_map.h"
#include "extensions/common/api/sockets/sockets_manifest_data.h"
bool ChromeDirectSocketsDelegate::IsAPIAccessAllowed(
content::RenderFrameHost& rfh) { … }
bool ChromeDirectSocketsDelegate::ValidateAddressAndPort(
content::RenderFrameHost& rfh,
const std::string& address,
uint16_t port,
ProtocolType protocol) { … }