OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Returns true if this WebSecurityOrigin can read content retrieved from | 89 // Returns true if this WebSecurityOrigin can read content retrieved from |
90 // the given URL. For example, call this function before allowing script | 90 // the given URL. For example, call this function before allowing script |
91 // from a given security origin to receive contents from a given URL. | 91 // from a given security origin to receive contents from a given URL. |
92 BLINK_PLATFORM_EXPORT bool canRequest(const WebURL&) const; | 92 BLINK_PLATFORM_EXPORT bool canRequest(const WebURL&) const; |
93 | 93 |
94 // Returns true if the origin loads resources either from the local | 94 // Returns true if the origin loads resources either from the local |
95 // machine or over the network from a | 95 // machine or over the network from a |
96 // cryptographically-authenticated origin, as described in | 96 // cryptographically-authenticated origin, as described in |
97 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustwo
rthy. | 97 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustwo
rthy. |
98 BLINK_PLATFORM_EXPORT bool isPotentiallyTrustworthy(WebString& errorMessage)
const; | 98 BLINK_PLATFORM_EXPORT bool isPotentiallyTrustworthy() const; |
99 | 99 |
100 // Returns a string representation of the WebSecurityOrigin. The empty | 100 // Returns a string representation of the WebSecurityOrigin. The empty |
101 // WebSecurityOrigin is represented by "null". The representation of a | 101 // WebSecurityOrigin is represented by "null". The representation of a |
102 // non-empty WebSecurityOrigin resembles a standard URL. | 102 // non-empty WebSecurityOrigin resembles a standard URL. |
103 BLINK_PLATFORM_EXPORT WebString toString() const; | 103 BLINK_PLATFORM_EXPORT WebString toString() const; |
104 | 104 |
105 // Returns a string representation of this WebSecurityOrigin that can | 105 // Returns a string representation of this WebSecurityOrigin that can |
106 // be used as a file. Should be used in storage APIs only. | 106 // be used as a file. Should be used in storage APIs only. |
107 BLINK_PLATFORM_EXPORT WebString databaseIdentifier() const; | 107 BLINK_PLATFORM_EXPORT WebString databaseIdentifier() const; |
108 | 108 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Present only to facilitate conversion from 'url::Origin'; this constructo
r shouldn't be used anywhere else. | 147 // Present only to facilitate conversion from 'url::Origin'; this constructo
r shouldn't be used anywhere else. |
148 BLINK_PLATFORM_EXPORT static WebSecurityOrigin createFromTuple(const WebStri
ng& protocol, const WebString& host, int port); | 148 BLINK_PLATFORM_EXPORT static WebSecurityOrigin createFromTuple(const WebStri
ng& protocol, const WebString& host, int port); |
149 | 149 |
150 void assign(WebSecurityOriginPrivate*); | 150 void assign(WebSecurityOriginPrivate*); |
151 WebSecurityOriginPrivate* m_private; | 151 WebSecurityOriginPrivate* m_private; |
152 }; | 152 }; |
153 | 153 |
154 } // namespace blink | 154 } // namespace blink |
155 | 155 |
156 #endif | 156 #endif |
OLD | NEW |