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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 | 170 |
171 void ResourceRequest::setCachePolicy(WebCachePolicy cachePolicy) { | 171 void ResourceRequest::setCachePolicy(WebCachePolicy cachePolicy) { |
172 m_cachePolicy = cachePolicy; | 172 m_cachePolicy = cachePolicy; |
173 } | 173 } |
174 | 174 |
175 double ResourceRequest::timeoutInterval() const { | 175 double ResourceRequest::timeoutInterval() const { |
176 return m_timeoutInterval; | 176 return m_timeoutInterval; |
177 } | 177 } |
178 | 178 |
179 void ResourceRequest::setTimeoutInterval(double timeoutInterval) { | 179 void ResourceRequest::setTimeoutInterval(double timoutIntervalSeconds) { |
180 m_timeoutInterval = timeoutInterval; | 180 m_timeoutInterval = timoutIntervalSeconds; |
181 } | 181 } |
182 | 182 |
183 const KURL& ResourceRequest::firstPartyForCookies() const { | 183 const KURL& ResourceRequest::firstPartyForCookies() const { |
184 return m_firstPartyForCookies; | 184 return m_firstPartyForCookies; |
185 } | 185 } |
186 | 186 |
187 void ResourceRequest::setFirstPartyForCookies( | 187 void ResourceRequest::setFirstPartyForCookies( |
188 const KURL& firstPartyForCookies) { | 188 const KURL& firstPartyForCookies) { |
189 m_firstPartyForCookies = firstPartyForCookies; | 189 m_firstPartyForCookies = firstPartyForCookies; |
190 } | 190 } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 WebAddressSpace targetSpace = WebAddressSpacePublic; | 349 WebAddressSpace targetSpace = WebAddressSpacePublic; |
350 if (NetworkUtils::isReservedIPAddress(m_url.host())) | 350 if (NetworkUtils::isReservedIPAddress(m_url.host())) |
351 targetSpace = WebAddressSpacePrivate; | 351 targetSpace = WebAddressSpacePrivate; |
352 if (SecurityOrigin::create(m_url)->isLocalhost()) | 352 if (SecurityOrigin::create(m_url)->isLocalhost()) |
353 targetSpace = WebAddressSpaceLocal; | 353 targetSpace = WebAddressSpaceLocal; |
354 | 354 |
355 m_isExternalRequest = requestorSpace > targetSpace; | 355 m_isExternalRequest = requestorSpace > targetSpace; |
356 } | 356 } |
357 | 357 |
| 358 void ResourceRequest::setNavigationStartTime(double navigationStart) { |
| 359 m_navigationStart = navigationStart; |
| 360 } |
| 361 |
358 bool ResourceRequest::isConditional() const { | 362 bool ResourceRequest::isConditional() const { |
359 return (m_httpHeaderFields.contains(HTTPNames::If_Match) || | 363 return (m_httpHeaderFields.contains(HTTPNames::If_Match) || |
360 m_httpHeaderFields.contains(HTTPNames::If_Modified_Since) || | 364 m_httpHeaderFields.contains(HTTPNames::If_Modified_Since) || |
361 m_httpHeaderFields.contains(HTTPNames::If_None_Match) || | 365 m_httpHeaderFields.contains(HTTPNames::If_None_Match) || |
362 m_httpHeaderFields.contains(HTTPNames::If_Range) || | 366 m_httpHeaderFields.contains(HTTPNames::If_Range) || |
363 m_httpHeaderFields.contains(HTTPNames::If_Unmodified_Since)); | 367 m_httpHeaderFields.contains(HTTPNames::If_Unmodified_Since)); |
364 } | 368 } |
365 | 369 |
366 void ResourceRequest::setHasUserGesture(bool hasUserGesture) { | 370 void ResourceRequest::setHasUserGesture(bool hasUserGesture) { |
367 m_hasUserGesture |= hasUserGesture; | 371 m_hasUserGesture |= hasUserGesture; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 m_didSetHTTPReferrer = false; | 420 m_didSetHTTPReferrer = false; |
417 m_checkForBrowserSideNavigation = true; | 421 m_checkForBrowserSideNavigation = true; |
418 m_uiStartTime = 0; | 422 m_uiStartTime = 0; |
419 m_isExternalRequest = false; | 423 m_isExternalRequest = false; |
420 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; | 424 m_inputPerfMetricReportPolicy = InputToLoadPerfMetricReportPolicy::NoReport; |
421 m_redirectStatus = RedirectStatus::NoRedirect; | 425 m_redirectStatus = RedirectStatus::NoRedirect; |
422 m_requestorOrigin = SecurityOrigin::createUnique(); | 426 m_requestorOrigin = SecurityOrigin::createUnique(); |
423 } | 427 } |
424 | 428 |
425 } // namespace blink | 429 } // namespace blink |
OLD | NEW |