OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebHTTPBody.h" | 35 #include "WebHTTPBody.h" |
36 #include "WebReferrerPolicy.h" | 36 #include "WebReferrerPolicy.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class ResourceRequest; | 40 class ResourceRequest; |
41 class WebHTTPBody; | 41 class WebHTTPBody; |
42 class WebHTTPHeaderVisitor; | 42 class WebHTTPHeaderVisitor; |
| 43 class WebSecurityOrigin; |
43 class WebString; | 44 class WebString; |
44 class WebURL; | 45 class WebURL; |
45 class WebURLRequestPrivate; | 46 class WebURLRequestPrivate; |
46 | 47 |
47 class WebURLRequest { | 48 class WebURLRequest { |
48 public: | 49 public: |
49 enum CachePolicy { | 50 enum CachePolicy { |
50 UseProtocolCachePolicy, // normal load | 51 UseProtocolCachePolicy, // normal load |
51 ReloadIgnoringCacheData, // reload | 52 ReloadIgnoringCacheData, // reload |
52 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stal
e data | 53 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stal
e data |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 159 |
159 BLINK_PLATFORM_EXPORT bool isNull() const; | 160 BLINK_PLATFORM_EXPORT bool isNull() const; |
160 | 161 |
161 BLINK_PLATFORM_EXPORT WebURL url() const; | 162 BLINK_PLATFORM_EXPORT WebURL url() const; |
162 BLINK_PLATFORM_EXPORT void setURL(const WebURL&); | 163 BLINK_PLATFORM_EXPORT void setURL(const WebURL&); |
163 | 164 |
164 // Used to implement third-party cookie blocking. | 165 // Used to implement third-party cookie blocking. |
165 BLINK_PLATFORM_EXPORT WebURL firstPartyForCookies() const; | 166 BLINK_PLATFORM_EXPORT WebURL firstPartyForCookies() const; |
166 BLINK_PLATFORM_EXPORT void setFirstPartyForCookies(const WebURL&); | 167 BLINK_PLATFORM_EXPORT void setFirstPartyForCookies(const WebURL&); |
167 | 168 |
| 169 // The origin of the execution context which originated the request. Used to |
| 170 // implement First-Party-Only cookie restrictions. |
| 171 BLINK_PLATFORM_EXPORT WebSecurityOrigin requestorOrigin() const; |
| 172 BLINK_PLATFORM_EXPORT void setRequestorOrigin(const WebSecurityOrigin&); |
| 173 |
168 // Controls whether user name, password, and cookies may be sent with the | 174 // Controls whether user name, password, and cookies may be sent with the |
169 // request. (If false, this overrides allowCookies.) | 175 // request. (If false, this overrides allowCookies.) |
170 BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const; | 176 BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const; |
171 BLINK_PLATFORM_EXPORT void setAllowStoredCredentials(bool); | 177 BLINK_PLATFORM_EXPORT void setAllowStoredCredentials(bool); |
172 | 178 |
173 BLINK_PLATFORM_EXPORT CachePolicy cachePolicy() const; | 179 BLINK_PLATFORM_EXPORT CachePolicy cachePolicy() const; |
174 BLINK_PLATFORM_EXPORT void setCachePolicy(CachePolicy); | 180 BLINK_PLATFORM_EXPORT void setCachePolicy(CachePolicy); |
175 | 181 |
176 BLINK_PLATFORM_EXPORT WebString httpMethod() const; | 182 BLINK_PLATFORM_EXPORT WebString httpMethod() const; |
177 BLINK_PLATFORM_EXPORT void setHTTPMethod(const WebString&); | 183 BLINK_PLATFORM_EXPORT void setHTTPMethod(const WebString&); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 protected: | 298 protected: |
293 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 299 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
294 | 300 |
295 private: | 301 private: |
296 WebURLRequestPrivate* m_private; | 302 WebURLRequestPrivate* m_private; |
297 }; | 303 }; |
298 | 304 |
299 } // namespace blink | 305 } // namespace blink |
300 | 306 |
301 #endif | 307 #endif |
OLD | NEW |