| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 class ServiceWorkerRegistration; | 48 class ServiceWorkerRegistration; |
| 49 class ServiceWorkerThread; | 49 class ServiceWorkerThread; |
| 50 class WaitUntilObserver; | 50 class WaitUntilObserver; |
| 51 class WorkerThreadStartupData; | 51 class WorkerThreadStartupData; |
| 52 | 52 |
| 53 typedef RequestOrUSVString RequestInfo; | 53 typedef RequestOrUSVString RequestInfo; |
| 54 | 54 |
| 55 class MODULES_EXPORT ServiceWorkerGlobalScope final : public WorkerGlobalScope { | 55 class MODULES_EXPORT ServiceWorkerGlobalScope final : public WorkerGlobalScope { |
| 56 DEFINE_WRAPPERTYPEINFO(); | 56 DEFINE_WRAPPERTYPEINFO(); |
| 57 public: | 57 public: |
| 58 static ServiceWorkerGlobalScope* create(ServiceWorkerThread*, PassOwnPtr<Wor
kerThreadStartupData>); | 58 static ServiceWorkerGlobalScope* create(ServiceWorkerThread*, WorkerThreadSt
artupData*); |
| 59 | 59 |
| 60 ~ServiceWorkerGlobalScope() override; | 60 ~ServiceWorkerGlobalScope() override; |
| 61 bool isServiceWorkerGlobalScope() const override { return true; } | 61 bool isServiceWorkerGlobalScope() const override { return true; } |
| 62 | 62 |
| 63 // WorkerGlobalScope | 63 // WorkerGlobalScope |
| 64 void didEvaluateWorkerScript() override; | 64 void didEvaluateWorkerScript() override; |
| 65 | 65 |
| 66 // ServiceWorkerGlobalScope.idl | 66 // ServiceWorkerGlobalScope.idl |
| 67 ServiceWorkerClients* clients(); | 67 ServiceWorkerClients* clients(); |
| 68 ServiceWorkerRegistration* registration(); | 68 ServiceWorkerRegistration* registration(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 size_t m_scriptCount; | 106 size_t m_scriptCount; |
| 107 size_t m_scriptTotalSize; | 107 size_t m_scriptTotalSize; |
| 108 size_t m_scriptCachedMetadataTotalSize; | 108 size_t m_scriptCachedMetadataTotalSize; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); | 111 DEFINE_TYPE_CASTS(ServiceWorkerGlobalScope, ExecutionContext, context, context->
isServiceWorkerGlobalScope(), context.isServiceWorkerGlobalScope()); |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| 114 | 114 |
| 115 #endif // ServiceWorkerGlobalScope_h | 115 #endif // ServiceWorkerGlobalScope_h |
| OLD | NEW |