Chromium Code Reviews| 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 BLINK_PLATFORM_EXPORT void setNavigationInitiatedByRenderer(bool); | |
| 339 BLINK_PLATFORM_EXPORT bool getNavigationInitiatedByRenderer() const; | |
|
Nate Chapin
2017/01/25 18:27:39
Please note here (or elsewhere if you think there'
| |
| 340 | |
| 338 #if INSIDE_BLINK | 341 #if INSIDE_BLINK |
| 339 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 342 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
| 340 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 343 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
| 341 | 344 |
| 342 protected: | 345 protected: |
| 343 // Permit subclasses to set arbitrary ResourceRequest pointer as | 346 // Permit subclasses to set arbitrary ResourceRequest pointer as |
| 344 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. | 347 // |m_resourceRequest|. |m_ownedResourceRequest| is not set in this case. |
| 345 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); | 348 BLINK_PLATFORM_EXPORT explicit WebURLRequest(ResourceRequest&); |
| 346 #endif | 349 #endif |
| 347 | 350 |
| 348 private: | 351 private: |
| 349 struct ResourceRequestContainer; | 352 struct ResourceRequestContainer; |
| 350 | 353 |
| 351 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| | 354 // If this instance owns a ResourceRequest then |m_ownedResourceRequest| |
| 352 // is non-null and |m_resourceRequest| points to the ResourceRequest | 355 // is non-null and |m_resourceRequest| points to the ResourceRequest |
| 353 // instance it contains. | 356 // instance it contains. |
| 354 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; | 357 std::unique_ptr<ResourceRequestContainer> m_ownedResourceRequest; |
| 355 | 358 |
| 356 // Should never be null. | 359 // Should never be null. |
| 357 ResourceRequest* m_resourceRequest; | 360 ResourceRequest* m_resourceRequest; |
| 358 }; | 361 }; |
| 359 | 362 |
| 360 } // namespace blink | 363 } // namespace blink |
| 361 | 364 |
| 362 #endif | 365 #endif |
| OLD | NEW |