| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |