OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 class WorkerThread; | 58 class WorkerThread; |
59 | 59 |
60 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected<
WorkerGlobalScope>, public SecurityContext, public ExecutionContext, public Exec
utionContextClient, public WillBeHeapSupplementable<WorkerGlobalScope>, public E
ventTargetWithInlineData, public DOMWindowBase64 { | 60 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected<
WorkerGlobalScope>, public SecurityContext, public ExecutionContext, public Exec
utionContextClient, public WillBeHeapSupplementable<WorkerGlobalScope>, public E
ventTargetWithInlineData, public DOMWindowBase64 { |
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); | 61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); |
62 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope); | 62 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope); |
63 public: | 63 public: |
64 virtual ~WorkerGlobalScope(); | 64 virtual ~WorkerGlobalScope(); |
65 | 65 |
66 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; } | 66 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; } |
67 | 67 |
68 virtual bool isDedicatedWorkerGlobalScope() const OVERRIDE { return fals
e; } | |
69 virtual bool isSharedWorkerGlobalScope() const OVERRIDE { return false;
} | |
70 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return false;
} | |
71 | |
72 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; | 68 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; |
73 | 69 |
| 70 virtual bool isSharedWorkerGlobalScope() const { return false; } |
| 71 virtual bool isDedicatedWorkerGlobalScope() const { return false; } |
| 72 virtual bool isServiceWorkerGlobalScope() const { return false; } |
74 virtual void countFeature(UseCounter::Feature) const; | 73 virtual void countFeature(UseCounter::Feature) const; |
75 virtual void countDeprecation(UseCounter::Feature) const; | 74 virtual void countDeprecation(UseCounter::Feature) const; |
76 | 75 |
77 const KURL& url() const { return m_url; } | 76 const KURL& url() const { return m_url; } |
78 KURL completeURL(const String&) const; | 77 KURL completeURL(const String&) const; |
79 | 78 |
80 virtual String userAgent(const KURL&) const OVERRIDE FINAL; | 79 virtual String userAgent(const KURL&) const OVERRIDE FINAL; |
81 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; | 80 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; |
82 | 81 |
83 WorkerScriptController* script() { return m_script.get(); } | 82 WorkerScriptController* script() { return m_script.get(); } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 179 |
181 double m_timeOrigin; | 180 double m_timeOrigin; |
182 TerminationObserver* m_terminationObserver; | 181 TerminationObserver* m_terminationObserver; |
183 }; | 182 }; |
184 | 183 |
185 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
186 | 185 |
187 } // namespace blink | 186 } // namespace blink |
188 | 187 |
189 #endif // WorkerGlobalScope_h | 188 #endif // WorkerGlobalScope_h |
OLD | NEW |