blob: e55ca47d2fd681abbf116a7ce6013d3e043d4f1c [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 CHROME_COMMON_SECURE_ORIGIN_WHITELIST_H_
#define CHROME_COMMON_SECURE_ORIGIN_WHITELIST_H_
#include <set>
#include <string>
class PrefRegistrySimple;
namespace secure_origin_whitelist {
// Returns a whitelist of schemes that should bypass the Is Privileged Context
// check. See http://www.w3.org/TR/powerful-features/#settings-privileged.
std::set<std::string> GetSchemesBypassingSecureContextCheck();
// Register preferences for Secure Origin Whitelists.
void RegisterPrefs(PrefRegistrySimple* local_state);
} // namespace secure_origin_whitelist
#endif // CHROME_COMMON_SECURE_ORIGIN_WHITELIST_H_