Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 2550373005: Make WebTaskRunner ThreadSafeRefCounted (Closed)
Patch Set: mac fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 if (!frame()->settings()) 967 if (!frame()->settings())
968 return priority; 968 return priority;
969 969
970 // If enabled, drop the priority of all resources in a subframe. 970 // If enabled, drop the priority of all resources in a subframe.
971 if (frame()->settings()->lowPriorityIframes() && !frame()->isMainFrame()) 971 if (frame()->settings()->lowPriorityIframes() && !frame()->isMainFrame())
972 return ResourceLoadPriorityVeryLow; 972 return ResourceLoadPriorityVeryLow;
973 973
974 return priority; 974 return priority;
975 } 975 }
976 976
977 WebTaskRunner* FrameFetchContext::loadingTaskRunner() const { 977 RefPtr<WebTaskRunner> FrameFetchContext::loadingTaskRunner() const {
978 return frame()->frameScheduler()->loadingTaskRunner(); 978 return frame()->frameScheduler()->loadingTaskRunner();
979 } 979 }
980 980
981 void FrameFetchContext::dispatchDidReceiveResponseInternal( 981 void FrameFetchContext::dispatchDidReceiveResponseInternal(
982 unsigned long identifier, 982 unsigned long identifier,
983 const ResourceResponse& response, 983 const ResourceResponse& response,
984 WebURLRequest::FrameType frameType, 984 WebURLRequest::FrameType frameType,
985 WebURLRequest::RequestContext requestContext, 985 WebURLRequest::RequestContext requestContext,
986 Resource* resource, 986 Resource* resource,
987 LinkLoader::CanLoadResources resourceLoadingPolicy) { 987 LinkLoader::CanLoadResources resourceLoadingPolicy) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 response); 1023 response);
1024 } 1024 }
1025 1025
1026 DEFINE_TRACE(FrameFetchContext) { 1026 DEFINE_TRACE(FrameFetchContext) {
1027 visitor->trace(m_document); 1027 visitor->trace(m_document);
1028 visitor->trace(m_documentLoader); 1028 visitor->trace(m_documentLoader);
1029 FetchContext::trace(visitor); 1029 FetchContext::trace(visitor);
1030 } 1030 }
1031 1031
1032 } // namespace blink 1032 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698