1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights 2 // reserved. Use of this source code is governed by a BSD-style license that 3 // can be found in the LICENSE file. 4 5 #ifndef CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_ 6 #define CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_ 7 #pragma once 8 9 #include <string> 10 #include <vector> 11 12 #include "content/public/common/content_client.h" 13 14 namespace scheme { 15 16 // Add internal schemes. 17 void AddInternalSchemes(content::ContentClient::Schemes* schemes); 18 19 // Returns true if the specified |scheme| is handled internally. 20 bool IsInternalHandledScheme(const std::string& scheme); 21 22 // Returns true if the specified |scheme| is a registered standard scheme. 23 bool IsStandardScheme(const std::string& scheme); 24 25 // Returns true if the specified |scheme| is a registered CORS enabled scheme. 26 bool IsCorsEnabledScheme(const std::string& scheme); 27 28 } // namespace scheme 29 30 #endif // CEF_LIBCEF_COMMON_NET_SCHEME_REGISTRATION_H_ 31