| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class LocalDOMWindow; | 49 class LocalDOMWindow; |
| 50 class ErrorEvent; | 50 class ErrorEvent; |
| 51 class EventQueue; | 51 class EventQueue; |
| 52 class ExecutionContextTask; | 52 class ExecutionContextTask; |
| 53 class ScriptState; | 53 class ScriptState; |
| 54 class PublicURLManager; | 54 class PublicURLManager; |
| 55 class SecurityOrigin; | 55 class SecurityOrigin; |
| 56 class ScriptCallStack; | 56 class ScriptCallStack; |
| 57 | 57 |
| 58 class ExecutionContext | 58 class ExecutionContext |
| 59 : public WillBeGarbageCollectedMixin | 59 : public LifecycleContext<ExecutionContext> |
| 60 , public LifecycleContext<ExecutionContext> | 60 , public WillBeHeapSupplementable<ExecutionContext> { |
| 61 , public Supplementable<ExecutionContext> { | |
| 62 public: | 61 public: |
| 63 virtual void trace(Visitor*); | 62 virtual void trace(Visitor*) OVERRIDE; |
| 64 | 63 |
| 65 // Delegating to ExecutionContextClient | 64 // Delegating to ExecutionContextClient |
| 66 bool isDocument() const { return m_client && m_client->isDocument(); } | 65 bool isDocument() const { return m_client && m_client->isDocument(); } |
| 67 bool isWorkerGlobalScope() const { return m_client && m_client->isWorkerGlob
alScope(); } | 66 bool isWorkerGlobalScope() const { return m_client && m_client->isWorkerGlob
alScope(); } |
| 68 bool isJSExecutionForbidden() { return m_client && m_client->isJSExecutionFo
rbidden(); } | 67 bool isJSExecutionForbidden() { return m_client && m_client->isJSExecutionFo
rbidden(); } |
| 69 SecurityOrigin* securityOrigin() const; | 68 SecurityOrigin* securityOrigin() const; |
| 70 ContentSecurityPolicy* contentSecurityPolicy() const; | 69 ContentSecurityPolicy* contentSecurityPolicy() const; |
| 71 const KURL& url() const; | 70 const KURL& url() const; |
| 72 KURL completeURL(const String& url) const; | 71 KURL completeURL(const String& url) const; |
| 73 void disableEval(const String& errorMessage); | 72 void disableEval(const String& errorMessage); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 169 |
| 171 // The location of this member is important; to make sure contextDestroyed()
notification on | 170 // The location of this member is important; to make sure contextDestroyed()
notification on |
| 172 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, | 171 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, |
| 173 // m_lifecycleNotifer should be placed *after* such members. | 172 // m_lifecycleNotifer should be placed *after* such members. |
| 174 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 173 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace blink | 176 } // namespace blink |
| 178 | 177 |
| 179 #endif // ExecutionContext_h | 178 #endif // ExecutionContext_h |
| OLD | NEW |