| 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 21 matching lines...) Expand all Loading... |
| 32 #define FetchContext_h | 32 #define FetchContext_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/fetch/CachePolicy.h" | 35 #include "core/fetch/CachePolicy.h" |
| 36 #include "core/fetch/FetchInitiatorInfo.h" | 36 #include "core/fetch/FetchInitiatorInfo.h" |
| 37 #include "core/fetch/FetchRequest.h" | 37 #include "core/fetch/FetchRequest.h" |
| 38 #include "core/fetch/Resource.h" | 38 #include "core/fetch/Resource.h" |
| 39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 40 #include "platform/network/ResourceLoadPriority.h" | 40 #include "platform/network/ResourceLoadPriority.h" |
| 41 #include "platform/network/ResourceRequest.h" | 41 #include "platform/network/ResourceRequest.h" |
| 42 #include "public/platform/WebInsecureRequestPolicy.h" |
| 42 #include "wtf/Noncopyable.h" | 43 #include "wtf/Noncopyable.h" |
| 43 | 44 |
| 44 namespace blink { | 45 namespace blink { |
| 45 | 46 |
| 46 class KURL; | 47 class KURL; |
| 47 class MHTMLArchive; | 48 class MHTMLArchive; |
| 48 class ResourceError; | 49 class ResourceError; |
| 49 class ResourceResponse; | 50 class ResourceResponse; |
| 50 class ResourceTimingInfo; | 51 class ResourceTimingInfo; |
| 51 class WebTaskRunner; | 52 class WebTaskRunner; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 168 |
| 168 virtual MHTMLArchive* archive() const { return nullptr; } | 169 virtual MHTMLArchive* archive() const { return nullptr; } |
| 169 | 170 |
| 170 virtual ResourceLoadPriority modifyPriorityForExperiments( | 171 virtual ResourceLoadPriority modifyPriorityForExperiments( |
| 171 ResourceLoadPriority priority) { | 172 ResourceLoadPriority priority) { |
| 172 return priority; | 173 return priority; |
| 173 } | 174 } |
| 174 | 175 |
| 175 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 176 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
| 176 | 177 |
| 178 virtual WebInsecureRequestPolicy getInsecureRequestPolicy() const { |
| 179 return kLeaveInsecureRequestsAlone; |
| 180 } |
| 181 |
| 177 protected: | 182 protected: |
| 178 FetchContext() {} | 183 FetchContext() {} |
| 179 }; | 184 }; |
| 180 | 185 |
| 181 } // namespace blink | 186 } // namespace blink |
| 182 | 187 |
| 183 #endif | 188 #endif |
| OLD | NEW |