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) 2009, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 WebAddressSpace targetSpace = WebAddressSpacePublic; | 374 WebAddressSpace targetSpace = WebAddressSpacePublic; |
375 if (NetworkUtils::isReservedIPAddress(m_url.host())) | 375 if (NetworkUtils::isReservedIPAddress(m_url.host())) |
376 targetSpace = WebAddressSpacePrivate; | 376 targetSpace = WebAddressSpacePrivate; |
377 if (SecurityOrigin::create(m_url)->isLocalhost()) | 377 if (SecurityOrigin::create(m_url)->isLocalhost()) |
378 targetSpace = WebAddressSpaceLocal; | 378 targetSpace = WebAddressSpaceLocal; |
379 | 379 |
380 m_isExternalRequest = requestorSpace > targetSpace; | 380 m_isExternalRequest = requestorSpace > targetSpace; |
381 } | 381 } |
382 | 382 |
| 383 void ResourceRequest::setNavigationStartTime(double navigationStart) |
| 384 { |
| 385 m_navigationStart = navigationStart; |
| 386 } |
| 387 |
383 bool ResourceRequest::isConditional() const | 388 bool ResourceRequest::isConditional() const |
384 { | 389 { |
385 return (m_httpHeaderFields.contains(HTTPNames::If_Match) | 390 return (m_httpHeaderFields.contains(HTTPNames::If_Match) |
386 || m_httpHeaderFields.contains(HTTPNames::If_Modified_Since) | 391 || m_httpHeaderFields.contains(HTTPNames::If_Modified_Since) |
387 || m_httpHeaderFields.contains(HTTPNames::If_None_Match) | 392 || m_httpHeaderFields.contains(HTTPNames::If_None_Match) |
388 || m_httpHeaderFields.contains(HTTPNames::If_Range) | 393 || m_httpHeaderFields.contains(HTTPNames::If_Range) |
389 || m_httpHeaderFields.contains(HTTPNames::If_Unmodified_Since)); | 394 || m_httpHeaderFields.contains(HTTPNames::If_Unmodified_Since)); |
390 } | 395 } |
391 | 396 |
392 void ResourceRequest::setHasUserGesture(bool hasUserGesture) | 397 void ResourceRequest::setHasUserGesture(bool hasUserGesture) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 m_didSetHTTPReferrer = false; | 450 m_didSetHTTPReferrer = false; |
446 m_checkForBrowserSideNavigation = true; | 451 m_checkForBrowserSideNavigation = true; |
447 m_uiStartTime = 0; | 452 m_uiStartTime = 0; |
448 m_isExternalRequest = false; | 453 m_isExternalRequest = false; |
449 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; | 454 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; |
450 m_redirectStatus = RedirectStatus::NoRedirect; | 455 m_redirectStatus = RedirectStatus::NoRedirect; |
451 m_requestorOrigin = SecurityOrigin::createUnique(); | 456 m_requestorOrigin = SecurityOrigin::createUnique(); |
452 } | 457 } |
453 | 458 |
454 } // namespace blink | 459 } // namespace blink |
OLD | NEW |