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

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

Issue 2533683002: Move the code in ResourceFetcher handling calls from WebURLLoaderImpl to ResourceLoader (Closed)
Patch Set: Fix test Created 4 years 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 | « no previous file | third_party/WebKit/Source/core/fetch/ResourceFetcher.h » ('j') | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class KURL; 46 class KURL;
47 class MHTMLArchive; 47 class MHTMLArchive;
48 class ResourceError; 48 class ResourceError;
49 class ResourceResponse; 49 class ResourceResponse;
50 class ResourceTimingInfo; 50 class ResourceTimingInfo;
51 class WebTaskRunner; 51 class WebTaskRunner;
52 enum class WebCachePolicy; 52 enum class WebCachePolicy;
53 53
54 enum FetchResourceType { FetchMainResource, FetchSubresource }; 54 enum FetchResourceType { FetchMainResource, FetchSubresource };
55 55
56 // The FetchContext is an interface for performing context specific processing
57 // in response to events in the ResourceFetcher. The ResourceFetcher or its job
58 // class, ResourceLoader, may call the methods on a FetchContext.
59 //
60 // Any processing that depends on core/ components outside core/fetch/ should
61 // be implemented on a subclass of this interface, and then exposed to the
62 // ResourceFetcher via this interface.
56 class CORE_EXPORT FetchContext 63 class CORE_EXPORT FetchContext
57 : public GarbageCollectedFinalized<FetchContext> { 64 : public GarbageCollectedFinalized<FetchContext> {
58 WTF_MAKE_NONCOPYABLE(FetchContext); 65 WTF_MAKE_NONCOPYABLE(FetchContext);
59 66
60 public: 67 public:
61 enum LogMessageType { LogErrorMessage, LogWarningMessage }; 68 enum LogMessageType { LogErrorMessage, LogWarningMessage };
62 69
63 static FetchContext& nullInstance(); 70 static FetchContext& nullInstance();
64 71
65 virtual ~FetchContext() {} 72 virtual ~FetchContext() {}
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 177
171 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 178 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
172 179
173 protected: 180 protected:
174 FetchContext() {} 181 FetchContext() {}
175 }; 182 };
176 183
177 } // namespace blink 184 } // namespace blink
178 185
179 #endif 186 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698