OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { | 303 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy) { |
304 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; | 304 m_inputPerfMetricReportPolicy = inputPerfMetricReportPolicy; |
305 } | 305 } |
306 | 306 |
307 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 307 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
308 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 308 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
309 | 309 |
310 void setNavigationStartTime(double); | 310 void setNavigationStartTime(double); |
311 double navigationStartTime() const { return m_navigationStart; } | 311 double navigationStartTime() const { return m_navigationStart; } |
312 | 312 |
| 313 void setInsecurePolicy( |
| 314 blink::WebInsecureRequestPolicy insecureRequestPolicy) { |
| 315 m_insecureRequestPolicy = insecureRequestPolicy; |
| 316 } |
| 317 blink::WebInsecureRequestPolicy insecureRequestPolicy() const { |
| 318 return m_insecureRequestPolicy; |
| 319 } |
| 320 |
313 private: | 321 private: |
314 void initialize(const KURL&); | 322 void initialize(const KURL&); |
315 | 323 |
316 const CacheControlHeader& cacheControlHeader() const; | 324 const CacheControlHeader& cacheControlHeader() const; |
317 | 325 |
318 bool needsHTTPOrigin() const; | 326 bool needsHTTPOrigin() const; |
319 | 327 |
320 KURL m_url; | 328 KURL m_url; |
321 WebCachePolicy m_cachePolicy; | 329 WebCachePolicy m_cachePolicy; |
322 double m_timeoutInterval; // 0 is a magic value for platform default on | 330 double m_timeoutInterval; // 0 is a magic value for platform default on |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 bool m_isExternalRequest; | 362 bool m_isExternalRequest; |
355 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 363 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
356 | 364 |
357 mutable CacheControlHeader m_cacheControlHeaderCache; | 365 mutable CacheControlHeader m_cacheControlHeaderCache; |
358 | 366 |
359 static double s_defaultTimeoutInterval; | 367 static double s_defaultTimeoutInterval; |
360 | 368 |
361 RedirectStatus m_redirectStatus; | 369 RedirectStatus m_redirectStatus; |
362 | 370 |
363 double m_navigationStart = 0; | 371 double m_navigationStart = 0; |
| 372 |
| 373 blink::WebInsecureRequestPolicy m_insecureRequestPolicy; |
364 }; | 374 }; |
365 | 375 |
366 struct CrossThreadResourceRequestData { | 376 struct CrossThreadResourceRequestData { |
367 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); | 377 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); |
368 USING_FAST_MALLOC(CrossThreadResourceRequestData); | 378 USING_FAST_MALLOC(CrossThreadResourceRequestData); |
369 | 379 |
370 public: | 380 public: |
371 CrossThreadResourceRequestData() {} | 381 CrossThreadResourceRequestData() {} |
372 KURL m_url; | 382 KURL m_url; |
373 | 383 |
(...skipping 29 matching lines...) Expand all Loading... |
403 bool m_checkForBrowserSideNavigation; | 413 bool m_checkForBrowserSideNavigation; |
404 double m_uiStartTime; | 414 double m_uiStartTime; |
405 bool m_isExternalRequest; | 415 bool m_isExternalRequest; |
406 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 416 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
407 ResourceRequest::RedirectStatus m_redirectStatus; | 417 ResourceRequest::RedirectStatus m_redirectStatus; |
408 }; | 418 }; |
409 | 419 |
410 } // namespace blink | 420 } // namespace blink |
411 | 421 |
412 #endif // ResourceRequest_h | 422 #endif // ResourceRequest_h |
OLD | NEW |