blob: e3efd6b5213ec86a068fc54083edf95e24ac331a [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.
#include "content/common/content_export.h"
class GURL;
namespace content {
// Returns true if the origin is trustworthy: that is, if its contents can be
// said to have been transferred to the browser in a way that a network attacker
// cannot tamper with or observe.
// See
bool CONTENT_EXPORT IsOriginSecure(const GURL& url);
// Resets the internal schemes/origins whitelist. Used only for testing.
void CONTENT_EXPORT ResetSecureSchemesAndOriginsForTesting();
} // namespace content