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 WorkerNavigator; | 58 class WorkerNavigator; |
59 class WorkerThread; | 59 class WorkerThread; |
60 | 60 |
61 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected<
WorkerGlobalScope>, public SecurityContext, public ExecutionContext, public Exec
utionContextClient, public WillBeHeapSupplementable<WorkerGlobalScope>, public E
ventTargetWithInlineData, public DOMWindowBase64 { | 61 class WorkerGlobalScope : public RefCountedWillBeRefCountedGarbageCollected<
WorkerGlobalScope>, public SecurityContext, public ExecutionContext, public Exec
utionContextClient, public WillBeHeapSupplementable<WorkerGlobalScope>, public E
ventTargetWithInlineData, public DOMWindowBase64 { |
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); | 62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); |
63 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope); | 63 REFCOUNTED_EVENT_TARGET(WorkerGlobalScope); |
64 public: | 64 public: |
65 virtual ~WorkerGlobalScope(); | 65 virtual ~WorkerGlobalScope(); |
66 | 66 |
67 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; } | 67 virtual bool isWorkerGlobalScope() const OVERRIDE FINAL { return true; } |
| 68 virtual bool isSharedWorkerGlobalScope() const OVERRIDE { return false;
} |
| 69 virtual bool isDedicatedWorkerGlobalScope() const OVERRIDE { return fals
e; } |
| 70 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return false;
} |
68 | 71 |
69 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; | 72 virtual ExecutionContext* executionContext() const OVERRIDE FINAL; |
70 | 73 |
71 virtual bool isSharedWorkerGlobalScope() const { return false; } | |
72 virtual bool isDedicatedWorkerGlobalScope() const { return false; } | |
73 virtual bool isServiceWorkerGlobalScope() const { return false; } | |
74 virtual void countFeature(UseCounter::Feature) const; | 74 virtual void countFeature(UseCounter::Feature) const; |
75 virtual void countDeprecation(UseCounter::Feature) const; | 75 virtual void countDeprecation(UseCounter::Feature) const; |
76 | 76 |
77 const KURL& url() const { return m_url; } | 77 const KURL& url() const { return m_url; } |
78 KURL completeURL(const String&) const; | 78 KURL completeURL(const String&) const; |
79 | 79 |
80 virtual String userAgent(const KURL&) const OVERRIDE FINAL; | 80 virtual String userAgent(const KURL&) const OVERRIDE FINAL; |
81 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; | 81 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; |
82 | 82 |
83 WorkerScriptController* script() { return m_script.get(); } | 83 WorkerScriptController* script() { return m_script.get(); } |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 180 |
181 double m_timeOrigin; | 181 double m_timeOrigin; |
182 TerminationObserver* m_terminationObserver; | 182 TerminationObserver* m_terminationObserver; |
183 }; | 183 }; |
184 | 184 |
185 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); | 185 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke
rGlobalScope(), context.isWorkerGlobalScope()); |
186 | 186 |
187 } // namespace blink | 187 } // namespace blink |
188 | 188 |
189 #endif // WorkerGlobalScope_h | 189 #endif // WorkerGlobalScope_h |
OLD | NEW |