| Index: content/public/common/origin_util.h
|
| diff --git a/content/public/common/origin_util.h b/content/public/common/origin_util.h
|
| index c24361b4feaf376566efe40ea4000e505355b1e4..faaadafc827d67766caf5bc8c00cfed33f10cb52 100644
|
| --- a/content/public/common/origin_util.h
|
| +++ b/content/public/common/origin_util.h
|
| @@ -6,6 +6,7 @@
|
| #define CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_
|
|
|
| #include "content/common/content_export.h"
|
| +#include "url/origin.h"
|
|
|
| class GURL;
|
|
|
| @@ -22,6 +23,15 @@ bool CONTENT_EXPORT IsOriginSecure(const GURL& url);
|
| // http (localhost only), https, or a custom-set secure scheme.
|
| bool CONTENT_EXPORT OriginCanAccessServiceWorkers(const GURL& url);
|
|
|
| +// Returns true if the origin is unique or was considered secure by the client.
|
| +// This behaves as close as possible to
|
| +// SecurityPolicy::isOriginWhiteListedTrustworthy.
|
| +bool CONTENT_EXPORT IsOriginWhiteListedTrustworthy(const url::Origin& origin);
|
| +
|
| +// This is based on SecurityOrigin::isPotentiallyTrustworthy and tries to mimic
|
| +// its behavior.
|
| +bool CONTENT_EXPORT IsPotentiallyTrustworthyOrigin(const url::Origin& origin);
|
| +
|
| } // namespace content
|
|
|
| #endif // CONTENT_PUBLIC_COMMON_ORIGIN_UTIL_H_
|
|
|