blob: ccbc99c43fde298ed98bf61f965a71ab76e29606 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_PUBLIC_URL_SCHEMES_H_
#define IOS_WEB_PUBLIC_URL_SCHEMES_H_
namespace web {
// Note: WebMainRunner calls this method internally as part of main
// initialization, so this function generally should not be called
// by embedders. It's exported to facilitate test harnesses that do
// not utilize WebMainRunner and that do not wish to lock the set of
// standard schemes at init time.
//
// Called near the beginning of startup to register URL schemes that
// should be parsed as "standard" with the src/url/ library. The set
// of standard scheme is locked if |lock_standard_schemes| is true.
// The embedder can add additional schemes by overriding the
// WebClient::AddAditionalSchemes method.
void RegisterWebSchemes(bool lock_standard_schemes);
} // namespace web
#endif // IOS_WEB_PUBLIC_URL_SCHEMES_H_