| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 public: | 60 public: |
| 61 enum LogMessageType { LogErrorMessage, LogWarningMessage }; | 61 enum LogMessageType { LogErrorMessage, LogWarningMessage }; |
| 62 | 62 |
| 63 static FetchContext& nullInstance(); | 63 static FetchContext& nullInstance(); |
| 64 | 64 |
| 65 virtual ~FetchContext() {} | 65 virtual ~FetchContext() {} |
| 66 DEFINE_INLINE_VIRTUAL_TRACE() {} | 66 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 67 | 67 |
| 68 virtual bool isLiveContext() { return false; } | 68 virtual bool isLiveContext() { return false; } |
| 69 virtual void countClientHintsDPR() {} | |
| 70 virtual void countClientHintsResourceWidth() {} | |
| 71 virtual void countClientHintsViewportWidth() {} | |
| 72 | 69 |
| 73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType); | 70 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType); |
| 74 virtual CachePolicy getCachePolicy() const; | 71 virtual CachePolicy getCachePolicy() const; |
| 75 // Returns the cache policy for the resource. ResourceRequest is not passed as | 72 // Returns the cache policy for the resource. ResourceRequest is not passed as |
| 76 // a const reference as a header needs to be added for doc.write blocking | 73 // a const reference as a header needs to be added for doc.write blocking |
| 77 // intervention. | 74 // intervention. |
| 78 virtual WebCachePolicy resourceRequestCachePolicy( | 75 virtual WebCachePolicy resourceRequestCachePolicy( |
| 79 ResourceRequest&, | 76 ResourceRequest&, |
| 80 Resource::Type, | 77 Resource::Type, |
| 81 FetchRequest::DeferOption) const; | 78 FetchRequest::DeferOption) const; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 167 |
| 171 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 168 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
| 172 | 169 |
| 173 protected: | 170 protected: |
| 174 FetchContext() {} | 171 FetchContext() {} |
| 175 }; | 172 }; |
| 176 | 173 |
| 177 } // namespace blink | 174 } // namespace blink |
| 178 | 175 |
| 179 #endif | 176 #endif |
| OLD | NEW |