Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Fix 2 WebContentsImplTest by assigning a document_sequence_number. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy( 319 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(
320 WebURLRequest::InputToLoadPerfMetricReportPolicy); 320 WebURLRequest::InputToLoadPerfMetricReportPolicy);
321 321
322 // https://mikewest.github.io/cors-rfc1918/#external-request 322 // https://mikewest.github.io/cors-rfc1918/#external-request
323 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; 323 BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
324 324
325 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; 325 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const;
326 326
327 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double); 327 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double);
328 328
329 // PlzNavigate: specify that the request was intended to be loaded as a same
330 // document navigation. No network requests should be made and the request
331 // should be dropped if the page's URL has changed in-between.
332 BLINK_PLATFORM_EXPORT void setIsSameDocumentNavigation(bool);
333
329 #if INSIDE_BLINK 334 #if INSIDE_BLINK
330 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); 335 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
331 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; 336 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;
332 337
333 protected: 338 protected:
334 // Permit subclasses to set arbitrary ResourceRequest pointer as 339 // Permit subclasses to set arbitrary ResourceRequest pointer as
335 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. 340 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case.
336 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); 341 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&);
337 #endif 342 #endif
338 343
339 private: 344 private:
340 struct ResourceRequestContainer; 345 struct ResourceRequestContainer;
341 346
342 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| 347 // If this instance owns a ResourceRequest then |m_ownedResourceRequest|
343 // is non-null and |m_resourceRequest| points to the ResourceRequest 348 // is non-null and |m_resourceRequest| points to the ResourceRequest
344 // instance it contains. 349 // instance it contains.
345 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; 350 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest;
346 351
347 // Should never be null. 352 // Should never be null.
348 ResourceRequest* m_resourceRequest; 353 ResourceRequest* m_resourceRequest;
349 }; 354 };
350 355
351 } // namespace blink 356 } // namespace blink
352 357
353 #endif 358 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698