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

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

Issue 2389753002: doc.write blocking intervention warning header (Closed)
Patch Set: Feedback incorporated Created 4 years, 2 months 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() {} 69 virtual void countClientHintsDPR() {}
70 virtual void countClientHintsResourceWidth() {} 70 virtual void countClientHintsResourceWidth() {}
71 virtual void countClientHintsViewportWidth() {} 71 virtual void countClientHintsViewportWidth() {}
72 72
73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType); 73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType);
74 virtual CachePolicy getCachePolicy() const; 74 virtual CachePolicy getCachePolicy() const;
75 // 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
77 // intervention.
75 virtual WebCachePolicy resourceRequestCachePolicy( 78 virtual WebCachePolicy resourceRequestCachePolicy(
76 const ResourceRequest&, 79 ResourceRequest&,
77 Resource::Type, 80 Resource::Type,
78 FetchRequest::DeferOption) const; 81 FetchRequest::DeferOption) const;
79 82
80 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, 83 virtual void dispatchDidChangeResourcePriority(unsigned long identifier,
81 ResourceLoadPriority, 84 ResourceLoadPriority,
82 int intraPriorityValue); 85 int intraPriorityValue);
83 // The last callback before a request is actually sent to the browser process. 86 // The last callback before a request is actually sent to the browser process.
84 virtual void dispatchWillSendRequest( 87 virtual void dispatchWillSendRequest(
85 unsigned long identifier, 88 unsigned long identifier,
86 ResourceRequest&, 89 ResourceRequest&,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 165
163 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } 166 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; }
164 167
165 protected: 168 protected:
166 FetchContext() {} 169 FetchContext() {}
167 }; 170 };
168 171
169 } // namespace blink 172 } // namespace blink
170 173
171 #endif 174 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698