| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 RefPtrWillBeRawPtr<ServiceWorkerGlobalScope> context = adoptRefWillBeNoop(ne
w ServiceWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAgent, t
hread, monotonicallyIncreasingTime(), startupData->m_starterOriginPrivilegeData.
release(), startupData->m_workerClients.release())); | 71 RefPtrWillBeRawPtr<ServiceWorkerGlobalScope> context = adoptRefWillBeNoop(ne
w ServiceWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAgent, t
hread, monotonicallyIncreasingTime(), startupData->m_starterOriginPrivilegeData.
release(), startupData->m_workerClients.release())); |
| 72 | 72 |
| 73 context->setV8CacheOptions(startupData->m_v8CacheOptions); | 73 context->setV8CacheOptions(startupData->m_v8CacheOptions); |
| 74 context->applyContentSecurityPolicyFromVector(*startupData->m_contentSecurit
yPolicyHeaders); | 74 context->applyContentSecurityPolicyFromVector(*startupData->m_contentSecurit
yPolicyHeaders); |
| 75 context->setAddressSpace(startupData->m_addressSpace); | 75 context->setAddressSpace(startupData->m_addressSpace); |
| 76 | 76 |
| 77 return context.release(); | 77 return context.release(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 ServiceWorkerGlobalScope::ServiceWorkerGlobalScope(const KURL& url, const String
& userAgent, ServiceWorkerThread* thread, double timeOrigin, PassOwnPtr<Security
Origin::PrivilegeData> starterOriginPrivilegeData, PassOwnPtrWillBeRawPtr<Worker
Clients> workerClients) | 80 ServiceWorkerGlobalScope::ServiceWorkerGlobalScope(const KURL& url, const String
& userAgent, ServiceWorkerThread* thread, double timeOrigin, PassOwnPtr<Security
Origin::PrivilegeData> starterOriginPrivilegeData, PassOwnPtrWillBeRawPtr<Worker
Clients> workerClients) |
| 81 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOriginPrivile
geData, workerClients, true /* withInspector */) | 81 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOriginPrivile
geData, workerClients) |
| 82 , m_didEvaluateScript(false) | 82 , m_didEvaluateScript(false) |
| 83 , m_hadErrorInTopLevelEventHandler(false) | 83 , m_hadErrorInTopLevelEventHandler(false) |
| 84 , m_eventNestingLevel(0) | 84 , m_eventNestingLevel(0) |
| 85 , m_scriptCount(0) | 85 , m_scriptCount(0) |
| 86 , m_scriptTotalSize(0) | 86 , m_scriptTotalSize(0) |
| 87 , m_scriptCachedMetadataTotalSize(0) | 87 , m_scriptCachedMetadataTotalSize(0) |
| 88 { | 88 { |
| 89 } | 89 } |
| 90 | 90 |
| 91 ServiceWorkerGlobalScope::~ServiceWorkerGlobalScope() | 91 ServiceWorkerGlobalScope::~ServiceWorkerGlobalScope() |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 | 222 |
| 223 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta
dataSize) | 223 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta
dataSize) |
| 224 { | 224 { |
| 225 ++m_scriptCount; | 225 ++m_scriptCount; |
| 226 m_scriptTotalSize += scriptSize; | 226 m_scriptTotalSize += scriptSize; |
| 227 m_scriptCachedMetadataTotalSize += cachedMetadataSize; | 227 m_scriptCachedMetadataTotalSize += cachedMetadataSize; |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |