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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class KURL; | 45 class KURL; |
46 class MHTMLArchive; | 46 class MHTMLArchive; |
47 class ResourceError; | 47 class ResourceError; |
48 class ResourceLoader; | 48 class ResourceLoader; |
49 class ResourceResponse; | 49 class ResourceResponse; |
50 class ResourceRequest; | 50 class ResourceRequest; |
51 class ResourceTimingInfo; | 51 class ResourceTimingInfo; |
52 class WebTaskRunner; | 52 class WebTaskRunner; |
53 class WebViewScheduler; | |
53 enum class WebCachePolicy; | 54 enum class WebCachePolicy; |
54 | 55 |
55 enum FetchResourceType { | 56 enum FetchResourceType { |
56 FetchMainResource, | 57 FetchMainResource, |
57 FetchSubresource | 58 FetchSubresource |
58 }; | 59 }; |
59 | 60 |
60 class CORE_EXPORT FetchContext : public GarbageCollectedFinalized<FetchContext> { | 61 class CORE_EXPORT FetchContext : public GarbageCollectedFinalized<FetchContext> { |
61 WTF_MAKE_NONCOPYABLE(FetchContext); | 62 WTF_MAKE_NONCOPYABLE(FetchContext); |
62 public: | 63 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
106 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; } | 107 virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; } |
107 virtual void upgradeInsecureRequest(FetchRequest&); | 108 virtual void upgradeInsecureRequest(FetchRequest&); |
108 virtual void addClientHintsIfNecessary(FetchRequest&); | 109 virtual void addClientHintsIfNecessary(FetchRequest&); |
109 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&); | 110 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&); |
110 | 111 |
111 virtual MHTMLArchive* archive() const { return nullptr; } | 112 virtual MHTMLArchive* archive() const { return nullptr; } |
112 | 113 |
113 virtual ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriori ty priority) { return priority; } | 114 virtual ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriori ty priority) { return priority; } |
114 | 115 |
115 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 116 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
117 virtual WebViewScheduler* webViewScheduler() const { return nullptr; } | |
dgozman
2016/06/30 17:32:08
I find it strange to have WebViewScheduler mention
alex clarke (OOO till 29th)
2016/07/01 14:09:14
I think this is a good point and it seems it's not
| |
116 | 118 |
117 protected: | 119 protected: |
118 FetchContext() { } | 120 FetchContext() { } |
119 }; | 121 }; |
120 | 122 |
121 } // namespace blink | 123 } // namespace blink |
122 | 124 |
123 #endif | 125 #endif |
OLD | NEW |