2013-06-04 19:41:37 +02:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#ifndef CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|
2013-06-04 19:41:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2017-01-23 18:36:54 +01:00
|
|
|
#include "content/public/common/content_client.h"
|
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
namespace scheme {
|
|
|
|
|
2013-06-05 01:37:26 +02:00
|
|
|
// Add internal schemes.
|
2017-01-23 18:36:54 +01:00
|
|
|
void AddInternalSchemes(content::ContentClient::Schemes* schemes);
|
2013-06-04 19:41:37 +02:00
|
|
|
|
|
|
|
// Returns true if the specified |scheme| is handled internally.
|
|
|
|
bool IsInternalHandledScheme(const std::string& scheme);
|
|
|
|
|
2019-04-24 04:50:25 +02:00
|
|
|
// Returns true if the specified |scheme| is a registered standard scheme.
|
|
|
|
bool IsStandardScheme(const std::string& scheme);
|
|
|
|
|
2020-08-14 21:28:23 +02:00
|
|
|
// Returns true if the specified |scheme| is a registered CORS enabled scheme.
|
|
|
|
bool IsCorsEnabledScheme(const std::string& scheme);
|
|
|
|
|
2013-06-04 19:41:37 +02:00
|
|
|
} // namespace scheme
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|