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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader, | 280 void FrameLoaderClientImpl::dispatchDidReceiveResponse(DocumentLoader* loader, |
281 unsigned long identifier, | 281 unsigned long identifier, |
282 const ResourceResponse& r
esponse) | 282 const ResourceResponse& r
esponse) |
283 { | 283 { |
284 if (m_webFrame->client()) { | 284 if (m_webFrame->client()) { |
285 WrappedResourceResponse webresp(response); | 285 WrappedResourceResponse webresp(response); |
286 m_webFrame->client()->didReceiveResponse(m_webFrame, identifier, webresp
); | 286 m_webFrame->client()->didReceiveResponse(m_webFrame, identifier, webresp
); |
287 } | 287 } |
288 } | 288 } |
289 void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long iden
tifier, | 289 |
290 ResourceLoadPriori
ty priority) | 290 void FrameLoaderClientImpl::dispatchDidChangeResourcePriority(unsigned long iden
tifier, ResourceLoadPriority priority, int intraPriorityValue) |
291 { | 291 { |
292 if (m_webFrame->client()) | 292 if (m_webFrame->client()) |
293 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier,
static_cast<blink::WebURLRequest::Priority>(priority)); | 293 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier,
static_cast<blink::WebURLRequest::Priority>(priority), intraPriorityValue); |
294 } | 294 } |
295 | 295 |
296 // Called when a particular resource load completes | 296 // Called when a particular resource load completes |
297 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, | 297 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, |
298 unsigned long identifier) | 298 unsigned long identifier) |
299 { | 299 { |
300 if (m_webFrame->client()) | 300 if (m_webFrame->client()) |
301 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); | 301 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); |
302 } | 302 } |
303 | 303 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 return m_webFrame->sharedWorkerRepositoryClient(); | 745 return m_webFrame->sharedWorkerRepositoryClient(); |
746 } | 746 } |
747 | 747 |
748 void FrameLoaderClientImpl::didStopAllLoaders() | 748 void FrameLoaderClientImpl::didStopAllLoaders() |
749 { | 749 { |
750 if (m_webFrame->client()) | 750 if (m_webFrame->client()) |
751 m_webFrame->client()->didAbortLoading(m_webFrame); | 751 m_webFrame->client()->didAbortLoading(m_webFrame); |
752 } | 752 } |
753 | 753 |
754 } // namespace blink | 754 } // namespace blink |
OLD | NEW |