OLD | NEW |
---|---|
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 | 149 |
150 // Methods related to window interaction. It should be used to manage window | 150 // Methods related to window interaction. It should be used to manage window |
151 // focusing and window creation permission for an ExecutionContext. | 151 // focusing and window creation permission for an ExecutionContext. |
152 void allowWindowInteraction(); | 152 void allowWindowInteraction(); |
153 void consumeWindowInteraction(); | 153 void consumeWindowInteraction(); |
154 bool isWindowInteractionAllowed() const; | 154 bool isWindowInteractionAllowed() const; |
155 | 155 |
156 // Decides whether this context is privileged, as described in | 156 // Decides whether this context is privileged, as described in |
157 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileg ed. | 157 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileg ed. |
158 virtual bool isSecureContext(String& errorMessage, const SecureContextCheck = StandardSecureContextCheck) const = 0; | 158 virtual bool isSecureContext(String& errorMessage, const SecureContextCheck = StandardSecureContextCheck) const = 0; |
159 virtual bool isSecureContext(const SecureContextCheck = StandardSecureContex tCheck) const = 0; | |
estark
2015/12/09 01:46:20
Could you instead provide the implementation in Ex
| |
159 | 160 |
160 virtual void setReferrerPolicy(ReferrerPolicy); | 161 virtual void setReferrerPolicy(ReferrerPolicy); |
161 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 162 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } |
162 | 163 |
163 protected: | 164 protected: |
164 ExecutionContext(); | 165 ExecutionContext(); |
165 virtual ~ExecutionContext(); | 166 virtual ~ExecutionContext(); |
166 | 167 |
167 virtual const KURL& virtualURL() const = 0; | 168 virtual const KURL& virtualURL() const = 0; |
168 virtual KURL virtualCompleteURL(const String&) const = 0; | 169 virtual KURL virtualCompleteURL(const String&) const = 0; |
(...skipping 29 matching lines...) Expand all Loading... | |
198 | 199 |
199 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; | 200 Deque<OwnPtr<SuspendableTask>> m_suspendedTasks; |
200 bool m_isRunSuspendableTasksScheduled; | 201 bool m_isRunSuspendableTasksScheduled; |
201 | 202 |
202 ReferrerPolicy m_referrerPolicy; | 203 ReferrerPolicy m_referrerPolicy; |
203 }; | 204 }; |
204 | 205 |
205 } // namespace blink | 206 } // namespace blink |
206 | 207 |
207 #endif // ExecutionContext_h | 208 #endif // ExecutionContext_h |
OLD | NEW |