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 the page's URL has changed in-between. | |
nasko
2017/01/23 19:10:13
Would we drop the navigation if another same page
arthursonzogni
2017/01/24 15:17:05
You are right. Done.
| |
341 BLINK_PLATFORM_EXPORT void setIsSameDocumentNavigation(bool); | |
342 | |
338 #if INSIDE_BLINK | 343 #if INSIDE_BLINK |
339 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 344 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
340 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 345 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
341 | 346 |
342 protected: | 347 protected: |
343 // Permit subclasses to set arbitrary ResourceRequest pointer as | 348 // Permit subclasses to set arbitrary ResourceRequest pointer as |
344 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 349 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
345 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 350 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
346 #endif | 351 #endif |
347 | 352 |
348 private: | 353 private: |
349 struct ResourceRequestContainer; | 354 struct ResourceRequestContainer; |
350 | 355 |
351 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 356 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
352 // is non-null and |m_resourceRequest| points to the ResourceRequest | 357 // is non-null and |m_resourceRequest| points to the ResourceRequest |
353 // instance it contains. | 358 // instance it contains. |
354 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 359 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
355 | 360 |
356 // Should never be null. | 361 // Should never be null. |
357 ResourceRequest* m_resourceRequest; | 362 ResourceRequest* m_resourceRequest; |
358 }; | 363 }; |
359 | 364 |
360 } // namespace blink | 365 } // namespace blink |
361 | 366 |
362 #endif | 367 #endif |
OLD | NEW |