| 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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 ResourceLoadPriority load_priority, | 419 ResourceLoadPriority load_priority, |
| 420 int intra_priority_value) { | 420 int intra_priority_value) { |
| 421 TRACE_EVENT1( | 421 TRACE_EVENT1( |
| 422 "devtools.timeline", "ResourceChangePriority", "data", | 422 "devtools.timeline", "ResourceChangePriority", "data", |
| 423 InspectorChangeResourcePriorityEvent::Data(identifier, load_priority)); | 423 InspectorChangeResourcePriorityEvent::Data(identifier, load_priority)); |
| 424 probe::didChangeResourcePriority(GetFrame(), identifier, load_priority); | 424 probe::didChangeResourcePriority(GetFrame(), identifier, load_priority); |
| 425 } | 425 } |
| 426 | 426 |
| 427 void FrameFetchContext::PrepareRequest(ResourceRequest& request, | 427 void FrameFetchContext::PrepareRequest(ResourceRequest& request, |
| 428 RedirectType redirect_type) { | 428 RedirectType redirect_type) { |
| 429 |
| 429 GetFrame()->Loader().ApplyUserAgent(request); | 430 GetFrame()->Loader().ApplyUserAgent(request); |
| 430 GetLocalFrameClient()->DispatchWillSendRequest(request); | 431 GetLocalFrameClient()->DispatchWillSendRequest(request); |
| 431 | 432 |
| 432 // ServiceWorker hook ups. | 433 // ServiceWorker hook ups. |
| 433 if (MasterDocumentLoader()->GetServiceWorkerNetworkProvider()) { | 434 if (MasterDocumentLoader()->GetServiceWorkerNetworkProvider()) { |
| 434 WrappedResourceRequest webreq(request); | 435 WrappedResourceRequest webreq(request); |
| 435 MasterDocumentLoader()->GetServiceWorkerNetworkProvider()->WillSendRequest( | 436 MasterDocumentLoader()->GetServiceWorkerNetworkProvider()->WillSendRequest( |
| 436 webreq); | 437 webreq); |
| 437 } | 438 } |
| 438 | 439 |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 RefPtr<WebTaskRunner> FrameFetchContext::LoadingTaskRunner() const { | 1030 RefPtr<WebTaskRunner> FrameFetchContext::LoadingTaskRunner() const { |
| 1030 return GetFrame()->FrameScheduler()->LoadingTaskRunner(); | 1031 return GetFrame()->FrameScheduler()->LoadingTaskRunner(); |
| 1031 } | 1032 } |
| 1032 | 1033 |
| 1033 DEFINE_TRACE(FrameFetchContext) { | 1034 DEFINE_TRACE(FrameFetchContext) { |
| 1034 visitor->Trace(document_loader_); | 1035 visitor->Trace(document_loader_); |
| 1035 BaseFetchContext::Trace(visitor); | 1036 BaseFetchContext::Trace(visitor); |
| 1036 } | 1037 } |
| 1037 | 1038 |
| 1038 } // namespace blink | 1039 } // namespace blink |
| OLD | NEW |