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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy( | 328 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy( |
329 WebURLRequest::InputToLoadPerfMetricReportPolicy); | 329 WebURLRequest::InputToLoadPerfMetricReportPolicy); |
330 | 330 |
331 // https://mikewest.github.io/cors-rfc1918/#external-request | 331 // https://mikewest.github.io/cors-rfc1918/#external-request |
332 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; | 332 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; |
333 | 333 |
334 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; | 334 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; |
335 | 335 |
336 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double); | 336 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double); |
337 | 337 |
| 338 // PlzNavigate: specify that the request was intended to be loaded as a same |
| 339 // document navigation. No network requests should be made and the request |
| 340 // should be dropped if a different document was loaded in the frame |
| 341 // in-between. |
| 342 BLINK_PLATFORM_EXPORT void setIsSameDocumentNavigation(bool); |
| 343 |
338 #if INSIDE_BLINK | 344 #if INSIDE_BLINK |
339 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 345 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
340 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 346 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
341 | 347 |
342 protected: | 348 protected: |
343 // Permit subclasses to set arbitrary ResourceRequest pointer as | 349 // Permit subclasses to set arbitrary ResourceRequest pointer as |
344 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 350 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
345 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 351 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
346 #endif | 352 #endif |
347 | 353 |
348 private: | 354 private: |
349 struct ResourceRequestContainer; | 355 struct ResourceRequestContainer; |
350 | 356 |
351 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 357 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
352 // is non-null and |m_resourceRequest| points to the ResourceRequest | 358 // is non-null and |m_resourceRequest| points to the ResourceRequest |
353 // instance it contains. | 359 // instance it contains. |
354 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 360 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
355 | 361 |
356 // Should never be null. | 362 // Should never be null. |
357 ResourceRequest* m_resourceRequest; | 363 ResourceRequest* m_resourceRequest; |
358 }; | 364 }; |
359 | 365 |
360 } // namespace blink | 366 } // namespace blink |
361 | 367 |
362 #endif | 368 #endif |
OLD | NEW |