| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 if (!frame()->settings()) | 987 if (!frame()->settings()) |
| 988 return priority; | 988 return priority; |
| 989 | 989 |
| 990 // If enabled, drop the priority of all resources in a subframe. | 990 // If enabled, drop the priority of all resources in a subframe. |
| 991 if (frame()->settings()->getLowPriorityIframes() && !frame()->isMainFrame()) | 991 if (frame()->settings()->getLowPriorityIframes() && !frame()->isMainFrame()) |
| 992 return ResourceLoadPriorityVeryLow; | 992 return ResourceLoadPriorityVeryLow; |
| 993 | 993 |
| 994 return priority; | 994 return priority; |
| 995 } | 995 } |
| 996 | 996 |
| 997 WebTaskRunner* FrameFetchContext::loadingTaskRunner() const { | 997 RefPtr<WebTaskRunner> FrameFetchContext::loadingTaskRunner() const { |
| 998 return frame()->frameScheduler()->loadingTaskRunner(); | 998 return frame()->frameScheduler()->loadingTaskRunner(); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 void FrameFetchContext::dispatchDidReceiveResponseInternal( | 1001 void FrameFetchContext::dispatchDidReceiveResponseInternal( |
| 1002 unsigned long identifier, | 1002 unsigned long identifier, |
| 1003 const ResourceResponse& response, | 1003 const ResourceResponse& response, |
| 1004 WebURLRequest::FrameType frameType, | 1004 WebURLRequest::FrameType frameType, |
| 1005 WebURLRequest::RequestContext requestContext, | 1005 WebURLRequest::RequestContext requestContext, |
| 1006 Resource* resource, | 1006 Resource* resource, |
| 1007 LinkLoader::CanLoadResources resourceLoadingPolicy) { | 1007 LinkLoader::CanLoadResources resourceLoadingPolicy) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 response); | 1041 response); |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 DEFINE_TRACE(FrameFetchContext) { | 1044 DEFINE_TRACE(FrameFetchContext) { |
| 1045 visitor->trace(m_document); | 1045 visitor->trace(m_document); |
| 1046 visitor->trace(m_documentLoader); | 1046 visitor->trace(m_documentLoader); |
| 1047 FetchContext::trace(visitor); | 1047 FetchContext::trace(visitor); |
| 1048 } | 1048 } |
| 1049 | 1049 |
| 1050 } // namespace blink | 1050 } // namespace blink |
| OLD | NEW |