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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Request can be handled both by a controlling same-origin worker and | 146 // Request can be handled both by a controlling same-origin worker and |
147 // a cross-origin foreign fetch service worker. | 147 // a cross-origin foreign fetch service worker. |
148 None, | 148 None, |
149 // Request should not be handled by a same-origin controlling worker, | 149 // Request should not be handled by a same-origin controlling worker, |
150 // but can be intercepted by a foreign fetch service worker. | 150 // but can be intercepted by a foreign fetch service worker. |
151 Controlling, | 151 Controlling, |
152 // Request should skip all possible service workers. | 152 // Request should skip all possible service workers. |
153 All | 153 All |
154 }; | 154 }; |
155 | 155 |
| 156 enum class LoadingIPCType { |
| 157 ChromeIPC, |
| 158 Mojo, |
| 159 }; |
| 160 |
156 class ExtraData { | 161 class ExtraData { |
157 public: | 162 public: |
158 virtual ~ExtraData() { } | 163 virtual ~ExtraData() { } |
159 }; | 164 }; |
160 | 165 |
161 ~WebURLRequest() { reset(); } | 166 ~WebURLRequest() { reset(); } |
162 | 167 |
163 WebURLRequest() : m_private(0) { } | 168 WebURLRequest() : m_private(0) { } |
164 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); } | 169 WebURLRequest(const WebURLRequest& r) : m_private(0) { assign(r); } |
165 WebURLRequest& operator=(const WebURLRequest& r) | 170 WebURLRequest& operator=(const WebURLRequest& r) |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // that triggered the navigation (which can be different from the navigation | 318 // that triggered the navigation (which can be different from the navigation |
314 // start time used in the Navigation Timing API). | 319 // start time used in the Navigation Timing API). |
315 BLINK_PLATFORM_EXPORT double uiStartTime() const; | 320 BLINK_PLATFORM_EXPORT double uiStartTime() const; |
316 BLINK_PLATFORM_EXPORT void setUiStartTime(double); | 321 BLINK_PLATFORM_EXPORT void setUiStartTime(double); |
317 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; | 322 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input
PerfMetricReportPolicy() const; |
318 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); | 323 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp
utToLoadPerfMetricReportPolicy); |
319 | 324 |
320 // https://mikewest.github.io/cors-rfc1918/#external-request | 325 // https://mikewest.github.io/cors-rfc1918/#external-request |
321 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; | 326 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; |
322 | 327 |
| 328 BLINK_PLATFORM_EXPORT LoadingIPCType getLoadingIPCType() const; |
| 329 |
323 #if INSIDE_BLINK | 330 #if INSIDE_BLINK |
324 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); | 331 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); |
325 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; | 332 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; |
326 #endif | 333 #endif |
327 | 334 |
328 protected: | 335 protected: |
329 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 336 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
330 | 337 |
331 private: | 338 private: |
332 WebURLRequestPrivate* m_private; | 339 WebURLRequestPrivate* m_private; |
333 }; | 340 }; |
334 | 341 |
335 } // namespace blink | 342 } // namespace blink |
336 | 343 |
337 #endif | 344 #endif |
OLD | NEW |