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

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

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 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) 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void allowWindowInteraction(); 150 void allowWindowInteraction();
151 void consumeWindowInteraction(); 151 void consumeWindowInteraction();
152 bool isWindowInteractionAllowed() const; 152 bool isWindowInteractionAllowed() const;
153 153
154 // Decides whether this context is privileged, as described in 154 // Decides whether this context is privileged, as described in
155 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileg ed. 155 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileg ed.
156 virtual bool isSecureContext(String& errorMessage, const SecureContextCheck = StandardSecureContextCheck) const = 0; 156 virtual bool isSecureContext(String& errorMessage, const SecureContextCheck = StandardSecureContextCheck) const = 0;
157 virtual bool isSecureContext(const SecureContextCheck = StandardSecureContex tCheck) const; 157 virtual bool isSecureContext(const SecureContextCheck = StandardSecureContex tCheck) const;
158 158
159 virtual void setReferrerPolicy(ReferrerPolicy); 159 virtual void setReferrerPolicy(ReferrerPolicy);
160 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } 160 ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; }
161 161
162 protected: 162 protected:
163 ExecutionContext(); 163 ExecutionContext();
164 virtual ~ExecutionContext(); 164 virtual ~ExecutionContext();
165 165
166 virtual const KURL& virtualURL() const = 0; 166 virtual const KURL& virtualURL() const = 0;
167 virtual KURL virtualCompleteURL(const String&) const = 0; 167 virtual KURL virtualCompleteURL(const String&) const = 0;
168 168
169 private: 169 private:
170 bool dispatchErrorEvent(PassRefPtrWillBeRawPtr<ErrorEvent>, AccessControlSta tus); 170 bool dispatchErrorEvent(PassRefPtrWillBeRawPtr<ErrorEvent>, AccessControlSta tus);
(...skipping 24 matching lines...) Expand all
195 195
196 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; 196 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
197 bool m_isRunSuspendableTasksScheduled; 197 bool m_isRunSuspendableTasksScheduled;
198 198
199 ReferrerPolicy m_referrerPolicy; 199 ReferrerPolicy m_referrerPolicy;
200 }; 200 };
201 201
202 } // namespace blink 202 } // namespace blink
203 203
204 #endif // ExecutionContext_h 204 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698