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

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

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: rebase 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 #include "platform/loader/fetch/Resource.h" 72 #include "platform/loader/fetch/Resource.h"
73 #include "platform/loader/fetch/ResourceLoadPriority.h" 73 #include "platform/loader/fetch/ResourceLoadPriority.h"
74 #include "platform/loader/fetch/ResourceLoadingLog.h" 74 #include "platform/loader/fetch/ResourceLoadingLog.h"
75 #include "platform/loader/fetch/ResourceTimingInfo.h" 75 #include "platform/loader/fetch/ResourceTimingInfo.h"
76 #include "platform/loader/fetch/UniqueIdentifier.h" 76 #include "platform/loader/fetch/UniqueIdentifier.h"
77 #include "platform/mhtml/MHTMLArchive.h" 77 #include "platform/mhtml/MHTMLArchive.h"
78 #include "platform/network/NetworkStateNotifier.h" 78 #include "platform/network/NetworkStateNotifier.h"
79 #include "platform/network/NetworkUtils.h" 79 #include "platform/network/NetworkUtils.h"
80 #include "platform/weborigin/SchemeRegistry.h" 80 #include "platform/weborigin/SchemeRegistry.h"
81 #include "platform/wtf/Vector.h" 81 #include "platform/wtf/Vector.h"
82 #include "public/platform/Platform.h"
82 #include "public/platform/WebCachePolicy.h" 83 #include "public/platform/WebCachePolicy.h"
83 #include "public/platform/WebInsecureRequestPolicy.h" 84 #include "public/platform/WebInsecureRequestPolicy.h"
84 #include "public/platform/WebViewScheduler.h" 85 #include "public/platform/WebViewScheduler.h"
85 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider. h" 86 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider. h"
86 87
87 namespace blink { 88 namespace blink {
88 89
89 namespace { 90 namespace {
90 91
91 void EmitWarningForDocWriteScripts(const String& url, Document& document) { 92 void EmitWarningForDocWriteScripts(const String& url, Document& document) {
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 !GetFrame()->IsMainFrame()) 1024 !GetFrame()->IsMainFrame())
1024 return kResourceLoadPriorityVeryLow; 1025 return kResourceLoadPriorityVeryLow;
1025 1026
1026 return priority; 1027 return priority;
1027 } 1028 }
1028 1029
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
1034 WebURLLoader* FrameFetchContext::CreateURLLoader() {
1035 return Platform::Current()->CreateURLLoader();
1036 }
1037
1033 DEFINE_TRACE(FrameFetchContext) { 1038 DEFINE_TRACE(FrameFetchContext) {
1034 visitor->Trace(document_loader_); 1039 visitor->Trace(document_loader_);
1035 BaseFetchContext::Trace(visitor); 1040 BaseFetchContext::Trace(visitor);
1036 } 1041 }
1037 1042
1038 } // namespace blink 1043 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698