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>
|
|
|
|
|
|
|
|
namespace scheme {
|
|
|
|
|
2013-06-05 01:37:26 +02:00
|
|
|
// Add internal schemes.
|
2015-07-16 23:40:01 +02:00
|
|
|
void AddInternalSchemes(std::vector<std::string>* standard_schemes,
|
|
|
|
std::vector<std::string>* savable_schemes);
|
2013-06-04 19:41:37 +02:00
|
|
|
|
|
|
|
// Returns true if the specified |scheme| is handled internally.
|
|
|
|
bool IsInternalHandledScheme(const std::string& scheme);
|
|
|
|
|
|
|
|
// Returns true if the specified |scheme| is handled internally and should not
|
|
|
|
// be explicitly registered or unregistered with the URLRequestJobFactory. A
|
|
|
|
// registered handler for one of these schemes (like "chrome") may still be
|
|
|
|
// triggered via chaining from an existing ProtocolHandler. |scheme| should
|
|
|
|
// always be a lower-case string.
|
|
|
|
bool IsInternalProtectedScheme(const std::string& scheme);
|
|
|
|
|
|
|
|
} // namespace scheme
|
|
|
|
|
2015-11-26 03:53:12 +01:00
|
|
|
#endif // CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_
|