| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 m_activeDOMObjectsAreSuspended = false; | 89 m_activeDOMObjectsAreSuspended = false; |
| 90 lifecycleNotifier().notifyResumingActiveDOMObjects(); | 90 lifecycleNotifier().notifyResumingActiveDOMObjects(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void ExecutionContext::stopActiveDOMObjects() | 93 void ExecutionContext::stopActiveDOMObjects() |
| 94 { | 94 { |
| 95 m_activeDOMObjectsAreStopped = true; | 95 m_activeDOMObjectsAreStopped = true; |
| 96 lifecycleNotifier().notifyStoppingActiveDOMObjects(); | 96 lifecycleNotifier().notifyStoppingActiveDOMObjects(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void ExecutionContext::removeAllLifecycleObservers() |
| 100 { |
| 101 lifecycleNotifier().removeAndNotifyAllObservers(); |
| 102 } |
| 103 |
| 99 unsigned ExecutionContext::activeDOMObjectCount() | 104 unsigned ExecutionContext::activeDOMObjectCount() |
| 100 { | 105 { |
| 101 return lifecycleNotifier().activeDOMObjects().size(); | 106 return lifecycleNotifier().activeDOMObjects().size(); |
| 102 } | 107 } |
| 103 | 108 |
| 104 void ExecutionContext::suspendScheduledTasks() | 109 void ExecutionContext::suspendScheduledTasks() |
| 105 { | 110 { |
| 106 suspendActiveDOMObjects(); | 111 suspendActiveDOMObjects(); |
| 107 if (m_client) | 112 if (m_client) |
| 108 m_client->tasksWereSuspended(); | 113 m_client->tasksWereSuspended(); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 338 |
| 334 RELEASE_ASSERT(m_client); | 339 RELEASE_ASSERT(m_client); |
| 335 // The SandboxOrigin is stored redundantly in the security origin. | 340 // The SandboxOrigin is stored redundantly in the security origin. |
| 336 if (isSandboxed(SandboxOrigin) && m_client->securityContext().securityOrigin
() && !m_client->securityContext().securityOrigin()->isUnique()) { | 341 if (isSandboxed(SandboxOrigin) && m_client->securityContext().securityOrigin
() && !m_client->securityContext().securityOrigin()->isUnique()) { |
| 337 m_client->securityContext().setSecurityOrigin(SecurityOrigin::createUniq
ue()); | 342 m_client->securityContext().setSecurityOrigin(SecurityOrigin::createUniq
ue()); |
| 338 m_client->didUpdateSecurityOrigin(); | 343 m_client->didUpdateSecurityOrigin(); |
| 339 } | 344 } |
| 340 } | 345 } |
| 341 | 346 |
| 342 } // namespace WebCore | 347 } // namespace WebCore |
| OLD | NEW |