| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 BLINK_PLATFORM_EXPORT double uiStartTime() const; | 306 BLINK_PLATFORM_EXPORT double uiStartTime() const; |
| 307 BLINK_PLATFORM_EXPORT void setUiStartTime(double); | 307 BLINK_PLATFORM_EXPORT void setUiStartTime(double); |
| 308 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; | 308 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; |
| 309 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); | 309 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); |
| 310 | 310 |
| 311 // https://mikewest.github.io/cors-rfc1918/#external-request | 311 // https://mikewest.github.io/cors-rfc1918/#external-request |
| 312 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; | 312 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; |
| 313 | 313 |
| 314 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; | 314 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; |
| 315 | 315 |
| 316 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double); |
| 317 |
| 316 #if INSIDE_BLINK | 318 #if INSIDE_BLINK |
| 317 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 319 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
| 318 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 320 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
| 319 | 321 |
| 320 protected: | 322 protected: |
| 321 // Permit subclasses to set arbitrary ResourceRequest pointer as | 323 // Permit subclasses to set arbitrary ResourceRequest pointer as |
| 322 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 324 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
| 323 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 325 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
| 324 #endif | 326 #endif |
| 325 | 327 |
| 326 private: | 328 private: |
| 327 struct ResourceRequestContainer; | 329 struct ResourceRequestContainer; |
| 328 | 330 |
| 329 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 331 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
| 330 // is non-null and |m_resourceRequest| points to the ResourceRequest | 332 // is non-null and |m_resourceRequest| points to the ResourceRequest |
| 331 // instance it contains. | 333 // instance it contains. |
| 332 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 334 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
| 333 | 335 |
| 334 // Should never be null. | 336 // Should never be null. |
| 335 ResourceRequest* m_resourceRequest; | 337 ResourceRequest* m_resourceRequest; |
| 336 }; | 338 }; |
| 337 | 339 |
| 338 } // namespace blink | 340 } // namespace blink |
| 339 | 341 |
| 340 #endif | 342 #endif |
| OLD | NEW |