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 27 matching lines...) Expand all Loading... |
38 #include <memory> | 38 #include <memory> |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class ResourceRequest; | 42 class ResourceRequest; |
43 class WebHTTPBody; | 43 class WebHTTPBody; |
44 class WebHTTPHeaderVisitor; | 44 class WebHTTPHeaderVisitor; |
45 class WebSecurityOrigin; | 45 class WebSecurityOrigin; |
46 class WebString; | 46 class WebString; |
47 class WebURL; | 47 class WebURL; |
| 48 class WebURLResponse; |
48 enum class WebCachePolicy; | 49 enum class WebCachePolicy; |
49 | 50 |
50 class WebURLRequest { | 51 class WebURLRequest { |
51 public: | 52 public: |
52 enum Priority { | 53 enum Priority { |
53 PriorityUnresolved = -1, | 54 PriorityUnresolved = -1, |
54 PriorityVeryLow, | 55 PriorityVeryLow, |
55 PriorityLow, | 56 PriorityLow, |
56 PriorityMedium, | 57 PriorityMedium, |
57 PriorityHigh, | 58 PriorityHigh, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 BLINK_PLATFORM_EXPORT double uiStartTime() const; | 307 BLINK_PLATFORM_EXPORT double uiStartTime() const; |
307 BLINK_PLATFORM_EXPORT void setUiStartTime(double); | 308 BLINK_PLATFORM_EXPORT void setUiStartTime(double); |
308 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; | 309 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; |
309 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); | 310 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); |
310 | 311 |
311 // https://mikewest.github.io/cors-rfc1918/#external-request | 312 // https://mikewest.github.io/cors-rfc1918/#external-request |
312 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; | 313 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; |
313 | 314 |
314 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; | 315 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; |
315 | 316 |
| 317 // Inform the request of previous navigations in the redirect chain that |
| 318 // happened outside of blink. |
| 319 BLINK_PLATFORM_EXPORT void appendPreviousResponse(const WebURLResponse&); |
| 320 BLINK_PLATFORM_EXPORT void setPreviousNavigationStart(double); |
| 321 |
316 #if INSIDE_BLINK | 322 #if INSIDE_BLINK |
317 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 323 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
318 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 324 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
319 | 325 |
320 protected: | 326 protected: |
321 // Permit subclasses to set arbitrary ResourceRequest pointer as | 327 // Permit subclasses to set arbitrary ResourceRequest pointer as |
322 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 328 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
323 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 329 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
324 #endif | 330 #endif |
325 | 331 |
326 private: | 332 private: |
327 struct ResourceRequestContainer; | 333 struct ResourceRequestContainer; |
328 | 334 |
329 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 335 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
330 // is non-null and |m_resourceRequest| points to the ResourceRequest | 336 // is non-null and |m_resourceRequest| points to the ResourceRequest |
331 // instance it contains. | 337 // instance it contains. |
332 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 338 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
333 | 339 |
334 // Should never be null. | 340 // Should never be null. |
335 ResourceRequest* m_resourceRequest; | 341 ResourceRequest* m_resourceRequest; |
336 }; | 342 }; |
337 | 343 |
338 } // namespace blink | 344 } // namespace blink |
339 | 345 |
340 #endif | 346 #endif |
OLD | NEW |