OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 332 |
333 void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader, | 333 void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader, |
334 unsigned long identifier, | 334 unsigned long identifier, |
335 const ResourceResponse& r
esponse) | 335 const ResourceResponse& r
esponse) |
336 { | 336 { |
337 if (m_webFrame->client()) { | 337 if (m_webFrame->client()) { |
338 WrappedResourceResponse webresp(response); | 338 WrappedResourceResponse webresp(response); |
339 m_webFrame->client()->didReceiveResponse(m_webFrame, identifier, webresp
); | 339 m_webFrame->client()->didReceiveResponse(m_webFrame, identifier, webresp
); |
340 } | 340 } |
341 } | 341 } |
342 void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long iden
tifier, | 342 |
343 ResourceLoadPriori
ty priority) | 343 void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long iden
tifier, ResourceLoadPriority priority, int intraPriorityValue) |
344 { | 344 { |
345 if (m_webFrame->client()) | 345 if (m_webFrame->client()) |
346 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier,
static_cast<blink::WebURLRequest::Priority>(priority)); | 346 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier,
static_cast<blink::WebURLRequest::Priority>(priority), intraPriorityValue); |
347 } | 347 } |
348 | 348 |
349 // Called when a particular resource load completes | 349 // Called when a particular resource load completes |
350 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, | 350 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, |
351 unsigned long identifier) | 351 unsigned long identifier) |
352 { | 352 { |
353 if (m_webFrame->client()) | 353 if (m_webFrame->client()) |
354 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); | 354 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); |
355 } | 355 } |
356 | 356 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 801 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
802 } | 802 } |
803 | 803 |
804 void FrameLoaderClientImpl::didStopAllLoaders() | 804 void FrameLoaderClientImpl::didStopAllLoaders() |
805 { | 805 { |
806 if (m_webFrame->client()) | 806 if (m_webFrame->client()) |
807 m_webFrame->client()->didAbortLoading(m_webFrame); | 807 m_webFrame->client()->didAbortLoading(m_webFrame); |
808 } | 808 } |
809 | 809 |
810 } // namespace blink | 810 } // namespace blink |
OLD | NEW |