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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class Dictionary; | 43 class Dictionary; |
44 class Request; | 44 class Request; |
45 class ScriptPromise; | 45 class ScriptPromise; |
46 class ScriptState; | 46 class ScriptState; |
47 class ServiceWorkerClients; | 47 class ServiceWorkerClients; |
48 class ServiceWorkerRegistration; | 48 class ServiceWorkerRegistration; |
49 class ServiceWorkerThread; | 49 class ServiceWorkerThread; |
50 class WaitUntilObserver; | 50 class WaitUntilObserver; |
51 class WebServiceWorkerRegistration; | 51 class WebServiceWorkerRegistration; |
52 class WorkerThreadStartupData; | 52 class WorkerScriptStartupData; |
53 | 53 |
54 typedef RequestOrUSVString RequestInfo; | 54 typedef RequestOrUSVString RequestInfo; |
55 | 55 |
56 class MODULES_EXPORT ServiceWorkerGlobalScope final : public WorkerGlobalScope { | 56 class MODULES_EXPORT ServiceWorkerGlobalScope final : public WorkerGlobalScope { |
57 DEFINE_WRAPPERTYPEINFO(); | 57 DEFINE_WRAPPERTYPEINFO(); |
58 public: | 58 public: |
59 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker
Thread*, PassOwnPtr<WorkerThreadStartupData>); | 59 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker
Thread*, PassOwnPtr<WorkerScriptStartupData>); |
60 | 60 |
61 virtual ~ServiceWorkerGlobalScope(); | 61 virtual ~ServiceWorkerGlobalScope(); |
62 virtual bool isServiceWorkerGlobalScope() const override { return true; } | 62 virtual bool isServiceWorkerGlobalScope() const override { return true; } |
63 | 63 |
64 // WorkerGlobalScope | 64 // WorkerGlobalScope |
65 virtual void didEvaluateWorkerScript() override; | 65 virtual void didEvaluateWorkerScript() override; |
66 | 66 |
67 // ServiceWorkerGlobalScope.idl | 67 // ServiceWorkerGlobalScope.idl |
68 ServiceWorkerClients* clients(); | 68 ServiceWorkerClients* clients(); |
69 ServiceWorkerRegistration* registration(); | 69 ServiceWorkerRegistration* registration(); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool m_hadErrorInTopLevelEventHandler; | 106 bool m_hadErrorInTopLevelEventHandler; |
107 unsigned m_eventNestingLevel; | 107 unsigned m_eventNestingLevel; |
108 size_t m_scriptCount; | 108 size_t m_scriptCount; |
109 size_t m_scriptTotalSize; | 109 size_t m_scriptTotalSize; |
110 size_t m_scriptCachedMetadataTotalSize; | 110 size_t m_scriptCachedMetadataTotalSize; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif // ServiceWorkerGlobalScope_h | 115 #endif // ServiceWorkerGlobalScope_h |
OLD | NEW |