OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 29 matching lines...) Expand all Loading... |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class DedicatedWorkerThread; | 42 class DedicatedWorkerThread; |
43 class WorkerThreadStartupData; | 43 class WorkerThreadStartupData; |
44 | 44 |
45 class CORE_EXPORT DedicatedWorkerGlobalScope final : public WorkerGlobalScope { | 45 class CORE_EXPORT DedicatedWorkerGlobalScope final : public WorkerGlobalScope { |
46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
47 public: | 47 public: |
48 typedef WorkerGlobalScope Base; | 48 typedef WorkerGlobalScope Base; |
49 static PassRefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> create(DedicatedWo
rkerThread*, PassOwnPtr<WorkerThreadStartupData>, double timeOrigin); | 49 static PassRefPtrWillBeRawPtr<DedicatedWorkerGlobalScope> create(DedicatedWo
rkerThread*, PassOwnPtr<WorkerThreadStartupData>, double timeOrigin); |
50 virtual ~DedicatedWorkerGlobalScope(); | 50 ~DedicatedWorkerGlobalScope() override; |
51 | 51 |
52 virtual bool isDedicatedWorkerGlobalScope() const override { return true; } | 52 bool isDedicatedWorkerGlobalScope() const override { return true; } |
53 virtual void countFeature(UseCounter::Feature) const override; | 53 void countFeature(UseCounter::Feature) const override; |
54 virtual void countDeprecation(UseCounter::Feature) const override; | 54 void countDeprecation(UseCounter::Feature) const override; |
55 | 55 |
56 // Overridden to allow us to check our pending activity after executing impo
rted script. | 56 // Overridden to allow us to check our pending activity after executing impo
rted script. |
57 virtual void importScripts(const Vector<String>& urls, ExceptionState&) over
ride; | 57 void importScripts(const Vector<String>& urls, ExceptionState&) override; |
58 | 58 |
59 // EventTarget | 59 // EventTarget |
60 virtual const AtomicString& interfaceName() const override; | 60 const AtomicString& interfaceName() const override; |
61 | 61 |
62 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const
MessagePortArray*, ExceptionState&); | 62 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const
MessagePortArray*, ExceptionState&); |
63 | 63 |
64 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
65 | 65 |
66 DedicatedWorkerThread* thread() const; | 66 DedicatedWorkerThread* thread() const; |
67 | 67 |
68 DECLARE_VIRTUAL_TRACE(); | 68 DECLARE_VIRTUAL_TRACE(); |
69 | 69 |
70 private: | 70 private: |
71 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo
rkerThread*, double timeOrigin, const SecurityOrigin*, PassOwnPtrWillBeRawPtr<Wo
rkerClients>); | 71 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo
rkerThread*, double timeOrigin, const SecurityOrigin*, PassOwnPtrWillBeRawPtr<Wo
rkerClients>); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // DedicatedWorkerGlobalScope_h | 76 #endif // DedicatedWorkerGlobalScope_h |
OLD | NEW |