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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() Created 3 years, 7 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Resource::Type, 169 Resource::Type,
170 const ResourceRequest&, 170 const ResourceRequest&,
171 const KURL&, 171 const KURL&,
172 const ResourceLoaderOptions&) const { 172 const ResourceLoaderOptions&) const {
173 return ResourceRequestBlockedReason::kOther; 173 return ResourceRequestBlockedReason::kOther;
174 } 174 }
175 175
176 virtual bool IsControlledByServiceWorker() const { return false; } 176 virtual bool IsControlledByServiceWorker() const { return false; }
177 virtual int64_t ServiceWorkerID() const { return -1; } 177 virtual int64_t ServiceWorkerID() const { return -1; }
178 178
179 virtual int ApplicationCacheHostID() const { return 0; }
180
179 virtual bool IsMainFrame() const { return true; } 181 virtual bool IsMainFrame() const { return true; }
180 virtual bool DefersLoading() const { return false; } 182 virtual bool DefersLoading() const { return false; }
181 virtual bool IsLoadComplete() const { return false; } 183 virtual bool IsLoadComplete() const { return false; }
182 virtual bool PageDismissalEventBeingDispatched() const { return false; } 184 virtual bool PageDismissalEventBeingDispatched() const { return false; }
183 virtual bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { 185 virtual bool UpdateTimingInfoForIFrameNavigation(ResourceTimingInfo*) {
184 return false; 186 return false;
185 } 187 }
186 virtual void SendImagePing(const KURL&); 188 virtual void SendImagePing(const KURL&);
187 virtual void AddConsoleMessage(const String&, 189 virtual void AddConsoleMessage(const String&,
188 LogMessageType = kLogErrorMessage) const; 190 LogMessageType = kLogErrorMessage) const;
(...skipping 13 matching lines...) Expand all
202 // stored in the FetchContext implementation. 204 // stored in the FetchContext implementation.
203 virtual void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&); 205 virtual void SetFirstPartyCookieAndRequestorOrigin(ResourceRequest&);
204 206
205 virtual MHTMLArchive* Archive() const { return nullptr; } 207 virtual MHTMLArchive* Archive() const { return nullptr; }
206 208
207 virtual ResourceLoadPriority ModifyPriorityForExperiments( 209 virtual ResourceLoadPriority ModifyPriorityForExperiments(
208 ResourceLoadPriority priority) { 210 ResourceLoadPriority priority) {
209 return priority; 211 return priority;
210 } 212 }
211 213
214 virtual RefPtr<WebTaskRunner> TimerTaskRunner() const { return nullptr; }
212 virtual RefPtr<WebTaskRunner> LoadingTaskRunner() const { return nullptr; } 215 virtual RefPtr<WebTaskRunner> LoadingTaskRunner() const { return nullptr; }
213 216
214 PlatformProbeSink* GetPlatformProbeSink() const { 217 PlatformProbeSink* GetPlatformProbeSink() const {
215 return platform_probe_sink_; 218 return platform_probe_sink_;
216 } 219 }
217 220
221 virtual Resource::ResourceCallback* GetResourceCallback() { return nullptr; }
222
218 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() { return nullptr; } 223 virtual std::unique_ptr<WebURLLoader> CreateURLLoader() { return nullptr; }
219 224
220 protected: 225 protected:
221 FetchContext(); 226 FetchContext();
222 227
223 private: 228 private:
224 Member<PlatformProbeSink> platform_probe_sink_; 229 Member<PlatformProbeSink> platform_probe_sink_;
225 }; 230 };
226 231
227 } // namespace blink 232 } // namespace blink
228 233
229 #endif 234 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698