2013-06-04 17:41:37 +00: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-25 21:53:12 -05:00
|
|
|
#ifndef CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|
2013-06-04 17:41:37 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2017-01-23 12:36:54 -05:00
|
|
|
#include "content/public/common/content_client.h"
|
|
|
|
|
2013-06-04 17:41:37 +00:00
|
|
|
namespace scheme {
|
|
|
|
|
2013-06-04 23:37:26 +00:00
|
|
|
// Add internal schemes.
|
2017-01-23 12:36:54 -05:00
|
|
|
void AddInternalSchemes(content::ContentClient::Schemes* schemes);
|
2013-06-04 17:41:37 +00:00
|
|
|
|
|
|
|
// Returns true if the specified |scheme| is handled internally.
|
|
|
|
bool IsInternalHandledScheme(const std::string& scheme);
|
|
|
|
|
2019-04-24 02:50:25 +00:00
|
|
|
// Returns true if the specified |scheme| is a registered standard scheme.
|
|
|
|
bool IsStandardScheme(const std::string& scheme);
|
|
|
|
|
2020-08-14 15:28:23 -04:00
|
|
|
// Returns true if the specified |scheme| is a registered CORS enabled scheme.
|
|
|
|
bool IsCorsEnabledScheme(const std::string& scheme);
|
|
|
|
|
2013-06-04 17:41:37 +00:00
|
|
|
} // namespace scheme
|
|
|
|
|
2015-11-25 21:53:12 -05:00
|
|
|
#endif // CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|