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

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

Issue 1009583003: Add CSP header for resources with an active policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add return statement to avoid compiler error Created 5 years, 9 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual bool isLoadComplete() const { return false; } 105 virtual bool isLoadComplete() const { return false; }
106 virtual bool pageDismissalEventBeingDispatched() const { return false; } 106 virtual bool pageDismissalEventBeingDispatched() const { return false; }
107 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { retu rn false; } 107 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { retu rn false; }
108 virtual void sendImagePing(const KURL&); 108 virtual void sendImagePing(const KURL&);
109 virtual void addConsoleMessage(const String&) const; 109 virtual void addConsoleMessage(const String&) const;
110 virtual ExecutionContext* executionContext() const { return nullptr; } 110 virtual ExecutionContext* executionContext() const { return nullptr; }
111 virtual SecurityOrigin* securityOrigin() const { return nullptr; } 111 virtual SecurityOrigin* securityOrigin() const { return nullptr; }
112 virtual String charset() const { return String(); } 112 virtual String charset() const { return String(); }
113 virtual void upgradeInsecureRequest(FetchRequest&); 113 virtual void upgradeInsecureRequest(FetchRequest&);
114 virtual void addClientHintsIfNecessary(FetchRequest&); 114 virtual void addClientHintsIfNecessary(FetchRequest&);
115 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&);
115 116
116 protected: 117 protected:
117 FetchContext() { } 118 FetchContext() { }
118 }; 119 };
119 120
120 } 121 }
121 122
122 #endif 123 #endif
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/security/contentSecurityPolicy/resources/test-csp-header.pl ('k') | Source/core/fetch/FetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698