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

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

Issue 2831513002: [DO NOT COMMIT] routing ID + CHECK
Patch Set: fix Created 3 years, 8 months 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698