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

Unified Diff: third_party/WebKit/Source/core/fetch/FetchContext.h

Issue 2343623002: Add a warning whenever link preloads are not used (Closed)
Patch Set: more comments Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchContext.h b/third_party/WebKit/Source/core/fetch/FetchContext.h
index b3de9b7bbbc974fb9f79ca01586d045c1ad23c15..cc78ffdd64c90ffd8f336903fc70abc9838d2da2 100644
--- a/third_party/WebKit/Source/core/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/core/fetch/FetchContext.h
@@ -60,6 +60,11 @@ enum FetchResourceType {
class CORE_EXPORT FetchContext : public GarbageCollectedFinalized<FetchContext> {
WTF_MAKE_NONCOPYABLE(FetchContext);
public:
+ enum LogMessageType {
+ LogErrorMessage,
+ LogWarningMessage
+ };
+
static FetchContext& nullInstance();
virtual ~FetchContext() { }
@@ -101,7 +106,7 @@ public:
virtual bool pageDismissalEventBeingDispatched() const { return false; }
virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { return false; }
virtual void sendImagePing(const KURL&);
- virtual void addConsoleMessage(const String&) const;
+ virtual void addConsoleMessage(const String&, LogMessageType = LogErrorMessage) const;
virtual SecurityOrigin* getSecurityOrigin() const { return nullptr; }
virtual void upgradeInsecureRequest(ResourceRequest&);
virtual void addClientHintsIfNecessary(FetchRequest&);

Powered by Google App Engine
This is Rietveld 408576698