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

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

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 namespace blink { 45 namespace blink {
46 46
47 class ClientHintsPreferences; 47 class ClientHintsPreferences;
48 class KURL; 48 class KURL;
49 class MHTMLArchive; 49 class MHTMLArchive;
50 class PlatformProbeSink; 50 class PlatformProbeSink;
51 class ResourceError; 51 class ResourceError;
52 class ResourceResponse; 52 class ResourceResponse;
53 class ResourceTimingInfo; 53 class ResourceTimingInfo;
54 class WebTaskRunner; 54 class WebTaskRunner;
55 class WebURLLoader;
55 enum class WebCachePolicy; 56 enum class WebCachePolicy;
56 57
57 enum FetchResourceType { kFetchMainResource, kFetchSubresource }; 58 enum FetchResourceType { kFetchMainResource, kFetchSubresource };
58 59
59 // The FetchContext is an interface for performing context specific processing 60 // The FetchContext is an interface for performing context specific processing
60 // in response to events in the ResourceFetcher. The ResourceFetcher or its job 61 // in response to events in the ResourceFetcher. The ResourceFetcher or its job
61 // class, ResourceLoader, may call the methods on a FetchContext. 62 // class, ResourceLoader, may call the methods on a FetchContext.
62 // 63 //
63 // Any processing that depends on components outside platform/loader/fetch/ 64 // Any processing that depends on components outside platform/loader/fetch/
64 // should be implemented on a subclass of this interface, and then exposed to 65 // should be implemented on a subclass of this interface, and then exposed to
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ResourceLoadPriority priority) { 195 ResourceLoadPriority priority) {
195 return priority; 196 return priority;
196 } 197 }
197 198
198 virtual RefPtr<WebTaskRunner> LoadingTaskRunner() const { return nullptr; } 199 virtual RefPtr<WebTaskRunner> LoadingTaskRunner() const { return nullptr; }
199 200
200 PlatformProbeSink* GetPlatformProbeSink() const { 201 PlatformProbeSink* GetPlatformProbeSink() const {
201 return platform_probe_sink_; 202 return platform_probe_sink_;
202 } 203 }
203 204
205 virtual WebURLLoader* CreateURLLoader() { return nullptr; }
206
204 protected: 207 protected:
205 FetchContext(); 208 FetchContext();
206 209
207 private: 210 private:
208 Member<PlatformProbeSink> platform_probe_sink_; 211 Member<PlatformProbeSink> platform_probe_sink_;
209 }; 212 };
210 213
211 } // namespace blink 214 } // namespace blink
212 215
213 #endif 216 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698