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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Rebase Created 4 years, 2 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy 317 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy
318 inputPerfMetricReportPolicy() const; 318 inputPerfMetricReportPolicy() const;
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);
328
327 #if INSIDE_BLINK 329 #if INSIDE_BLINK
328 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); 330 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
329 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; 331 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;
330 332
331 protected: 333 protected:
332 // Permit subclasses to set arbitrary ResourceRequest pointer as 334 // Permit subclasses to set arbitrary ResourceRequest pointer as
333 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. 335 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case.
334 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); 336 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&);
335 #endif 337 #endif
336 338
337 private: 339 private:
338 struct ResourceRequestContainer; 340 struct ResourceRequestContainer;
339 341
340 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| 342 // If this instance owns a ResourceRequest then |m_ownedResourceRequest|
341 // is non-null and |m_resourceRequest| points to the ResourceRequest 343 // is non-null and |m_resourceRequest| points to the ResourceRequest
342 // instance it contains. 344 // instance it contains.
343 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; 345 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest;
344 346
345 // Should never be null. 347 // Should never be null.
346 ResourceRequest* m_resourceRequest; 348 ResourceRequest* m_resourceRequest;
347 }; 349 };
348 350
349 } // namespace blink 351 } // namespace blink
350 352
351 #endif 353 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebURLLoaderClient.h ('k') | third_party/WebKit/public/platform/WebURLResponse.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698