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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2400443004: Walk up frame tree for srcdoc referrer policies (Closed)
Patch Set: fix dynamic policy test 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // the context's referrer policy to the last one that is a valid 170 // the context's referrer policy to the last one that is a valid
171 // policy. Logs a message to the console if none of the policy 171 // policy. Logs a message to the console if none of the policy
172 // tokens are valid policies. 172 // tokens are valid policies.
173 // 173 //
174 // If |supportLegacyKeywords| is true, then the legacy keywords 174 // If |supportLegacyKeywords| is true, then the legacy keywords
175 // "never", "default", "always", and "origin-when-crossorigin" are 175 // "never", "default", "always", and "origin-when-crossorigin" are
176 // parsed as valid policies. 176 // parsed as valid policies.
177 void parseAndSetReferrerPolicy(const String& policies, 177 void parseAndSetReferrerPolicy(const String& policies,
178 bool supportLegacyKeywords = false); 178 bool supportLegacyKeywords = false);
179 void setReferrerPolicy(ReferrerPolicy); 179 void setReferrerPolicy(ReferrerPolicy);
180 ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; } 180 virtual ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
181 181
182 protected: 182 protected:
183 ExecutionContext(); 183 ExecutionContext();
184 virtual ~ExecutionContext(); 184 virtual ~ExecutionContext();
185 185
186 virtual const KURL& virtualURL() const = 0; 186 virtual const KURL& virtualURL() const = 0;
187 virtual KURL virtualCompleteURL(const String&) const = 0; 187 virtual KURL virtualCompleteURL(const String&) const = 0;
188 188
189 private: 189 private:
190 bool dispatchErrorEventInternal(ErrorEvent*, AccessControlStatus); 190 bool dispatchErrorEventInternal(ErrorEvent*, AccessControlStatus);
(...skipping 17 matching lines...) Expand all
208 208
209 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; 209 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
210 bool m_isRunSuspendableTasksScheduled; 210 bool m_isRunSuspendableTasksScheduled;
211 211
212 ReferrerPolicy m_referrerPolicy; 212 ReferrerPolicy m_referrerPolicy;
213 }; 213 };
214 214
215 } // namespace blink 215 } // namespace blink
216 216
217 #endif // ExecutionContext_h 217 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698