| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class ErrorEvent; | 48 class ErrorEvent; |
| 49 class EventQueue; | 49 class EventQueue; |
| 50 class ScriptState; | 50 class ScriptState; |
| 51 class PublicURLManager; | 51 class PublicURLManager; |
| 52 class ScriptCallStack; | 52 class ScriptCallStack; |
| 53 | 53 |
| 54 class ExecutionContext | 54 class ExecutionContext |
| 55 : public LifecycleContext<ExecutionContext> | 55 : public LifecycleContext<ExecutionContext> |
| 56 , public Supplementable<ExecutionContext> { | 56 , public Supplementable<ExecutionContext> { |
| 57 public: | 57 public: |
| 58 virtual void trace(Visitor*) override; | |
| 59 | |
| 60 // Delegating to ExecutionContextClient | 58 // Delegating to ExecutionContextClient |
| 61 bool isDocument() const { return m_client && m_client->isDocument(); } | 59 bool isDocument() const { return m_client && m_client->isDocument(); } |
| 62 const KURL& url() const; | 60 const KURL& url() const; |
| 63 KURL completeURL(const String& url) const; | 61 KURL completeURL(const String& url) const; |
| 64 LocalDOMWindow* executingWindow() const; | 62 LocalDOMWindow* executingWindow() const; |
| 65 double timerAlignmentInterval() const; | 63 double timerAlignmentInterval() const; |
| 66 | 64 |
| 67 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; | 65 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) = 0; |
| 68 | 66 |
| 69 KURL contextURL() const { return virtualURL(); } | 67 KURL contextURL() const { return virtualURL(); } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 143 |
| 146 // The location of this member is important; to make sure contextDestroyed()
notification on | 144 // The location of this member is important; to make sure contextDestroyed()
notification on |
| 147 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, | 145 // ExecutionContext's members (notably m_timeouts) is called before they are
destructed, |
| 148 // m_lifecycleNotifer should be placed *after* such members. | 146 // m_lifecycleNotifer should be placed *after* such members. |
| 149 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; | 147 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; |
| 150 }; | 148 }; |
| 151 | 149 |
| 152 } // namespace blink | 150 } // namespace blink |
| 153 | 151 |
| 154 #endif // ExecutionContext_h | 152 #endif // ExecutionContext_h |
| OLD | NEW |