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( |
291 unsigned long identifier, ResourceLoadPriority priority, int intraPriorityVa lue) | |
esprehn
2014/02/12 21:42:18
I wouldn't wrap this at all, you don't wrap the co
shatch
2014/02/13 18:13:50
Done.
| |
291 { | 292 { |
292 if (m_webFrame->client()) | 293 if (m_webFrame->client()) |
293 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier, static_cast<blink::WebURLRequest::Priority>(priority)); | 294 m_webFrame->client()->didChangeResourcePriority(m_webFrame, identifier, static_cast<blink::WebURLRequest::Priority>(priority), intraPriorityValue); |
294 } | 295 } |
295 | 296 |
296 // Called when a particular resource load completes | 297 // Called when a particular resource load completes |
297 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, | 298 void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader, |
298 unsigned long identifier) | 299 unsigned long identifier) |
299 { | 300 { |
300 if (m_webFrame->client()) | 301 if (m_webFrame->client()) |
301 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); | 302 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); |
302 } | 303 } |
303 | 304 |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
745 return m_webFrame->sharedWorkerRepositoryClient(); | 746 return m_webFrame->sharedWorkerRepositoryClient(); |
746 } | 747 } |
747 | 748 |
748 void FrameLoaderClientImpl::didStopAllLoaders() | 749 void FrameLoaderClientImpl::didStopAllLoaders() |
749 { | 750 { |
750 if (m_webFrame->client()) | 751 if (m_webFrame->client()) |
751 m_webFrame->client()->didAbortLoading(m_webFrame); | 752 m_webFrame->client()->didAbortLoading(m_webFrame); |
752 } | 753 } |
753 | 754 |
754 } // namespace blink | 755 } // namespace blink |
OLD | NEW |