| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 ExecutionContext::ExecutionContext() | 70 ExecutionContext::ExecutionContext() |
| 71 : m_circularSequentialID(0) | 71 : m_circularSequentialID(0) |
| 72 , m_inDispatchErrorEvent(false) | 72 , m_inDispatchErrorEvent(false) |
| 73 , m_activeDOMObjectsAreSuspended(false) | 73 , m_activeDOMObjectsAreSuspended(false) |
| 74 , m_activeDOMObjectsAreStopped(false) | 74 , m_activeDOMObjectsAreStopped(false) |
| 75 , m_strictMixedContentCheckingEnforced(false) | 75 , m_strictMixedContentCheckingEnforced(false) |
| 76 , m_windowInteractionTokens(0) | 76 , m_windowInteractionTokens(0) |
| 77 , m_isRunSuspendableTasksScheduled(false) | 77 , m_isRunSuspendableTasksScheduled(false) |
| 78 , m_referrerPolicy(ReferrerPolicyDefault) | 78 , m_referrerPolicy(ReferrerPolicyDefault) |
| 79 , m_serviceProvider(nullptr) |
| 79 { | 80 { |
| 80 } | 81 } |
| 81 | 82 |
| 82 ExecutionContext::~ExecutionContext() | 83 ExecutionContext::~ExecutionContext() |
| 83 { | 84 { |
| 84 } | 85 } |
| 85 | 86 |
| 86 void ExecutionContext::suspendActiveDOMObjects() | 87 void ExecutionContext::suspendActiveDOMObjects() |
| 87 { | 88 { |
| 88 ASSERT(!m_activeDOMObjectsAreSuspended); | 89 ASSERT(!m_activeDOMObjectsAreSuspended); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy) | 268 void ExecutionContext::setReferrerPolicy(ReferrerPolicy referrerPolicy) |
| 268 { | 269 { |
| 269 // FIXME: Can we adopt the CSP referrer policy merge algorithm? Or does the
web rely on being able to modify the referrer policy in-flight? | 270 // FIXME: Can we adopt the CSP referrer policy merge algorithm? Or does the
web rely on being able to modify the referrer policy in-flight? |
| 270 UseCounter::count(this, UseCounter::SetReferrerPolicy); | 271 UseCounter::count(this, UseCounter::SetReferrerPolicy); |
| 271 if (m_referrerPolicy != ReferrerPolicyDefault) | 272 if (m_referrerPolicy != ReferrerPolicyDefault) |
| 272 UseCounter::count(this, UseCounter::ResetReferrerPolicy); | 273 UseCounter::count(this, UseCounter::ResetReferrerPolicy); |
| 273 | 274 |
| 274 m_referrerPolicy = referrerPolicy; | 275 m_referrerPolicy = referrerPolicy; |
| 275 } | 276 } |
| 276 | 277 |
| 278 void ExecutionContext::setServiceProvider(mojo::ServiceProvider* serviceProvider
) |
| 279 { |
| 280 m_serviceProvider = serviceProvider; |
| 281 } |
| 282 |
| 277 void ExecutionContext::removeURLFromMemoryCache(const KURL& url) | 283 void ExecutionContext::removeURLFromMemoryCache(const KURL& url) |
| 278 { | 284 { |
| 279 memoryCache()->removeURLFromCache(url); | 285 memoryCache()->removeURLFromCache(url); |
| 280 } | 286 } |
| 281 | 287 |
| 282 // |name| should be non-empty, and this should be enforced by parsing. | 288 // |name| should be non-empty, and this should be enforced by parsing. |
| 283 void ExecutionContext::enforceSuborigin(const String& name) | 289 void ExecutionContext::enforceSuborigin(const String& name) |
| 284 { | 290 { |
| 285 if (name.isNull()) | 291 if (name.isNull()) |
| 286 return; | 292 return; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 297 { | 303 { |
| 298 #if ENABLE(OILPAN) | 304 #if ENABLE(OILPAN) |
| 299 visitor->trace(m_pendingExceptions); | 305 visitor->trace(m_pendingExceptions); |
| 300 visitor->trace(m_publicURLManager); | 306 visitor->trace(m_publicURLManager); |
| 301 HeapSupplementable<ExecutionContext>::trace(visitor); | 307 HeapSupplementable<ExecutionContext>::trace(visitor); |
| 302 #endif | 308 #endif |
| 303 ContextLifecycleNotifier::trace(visitor); | 309 ContextLifecycleNotifier::trace(visitor); |
| 304 } | 310 } |
| 305 | 311 |
| 306 } // namespace blink | 312 } // namespace blink |
| OLD | NEW |