| 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 setInitialURL(const WebURL&); |
| 317 BLINK_PLATFORM_EXPORT void setNavigationStartTime(double); |
| 318 |
| 316 #if INSIDE_BLINK | 319 #if INSIDE_BLINK |
| 317 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 320 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
| 318 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 321 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
| 319 | 322 |
| 320 protected: | 323 protected: |
| 321 // Permit subclasses to set arbitrary ResourceRequest pointer as | 324 // Permit subclasses to set arbitrary ResourceRequest pointer as |
| 322 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 325 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
| 323 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 326 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
| 324 #endif | 327 #endif |
| 325 | 328 |
| 326 private: | 329 private: |
| 327 struct ResourceRequestContainer; | 330 struct ResourceRequestContainer; |
| 328 | 331 |
| 329 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 332 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
| 330 // is non-null and |m_resourceRequest| points to the ResourceRequest | 333 // is non-null and |m_resourceRequest| points to the ResourceRequest |
| 331 // instance it contains. | 334 // instance it contains. |
| 332 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 335 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
| 333 | 336 |
| 334 // Should never be null. | 337 // Should never be null. |
| 335 ResourceRequest* m_resourceRequest; | 338 ResourceRequest* m_resourceRequest; |
| 336 }; | 339 }; |
| 337 | 340 |
| 338 } // namespace blink | 341 } // namespace blink |
| 339 | 342 |
| 340 #endif | 343 #endif |
| OLD | NEW |