| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 namespace WebCore { | 46 namespace WebCore { |
| 47 | 47 |
| 48 class Blob; | 48 class Blob; |
| 49 class DOMURL; | 49 class DOMURL; |
| 50 class ScheduledAction; | 50 class ScheduledAction; |
| 51 class WorkerInspectorController; | 51 class WorkerInspectorController; |
| 52 class WorkerLocation; | 52 class WorkerLocation; |
| 53 class WorkerNavigator; | 53 class WorkerNavigator; |
| 54 class WorkerThread; | 54 class WorkerThread; |
| 55 | 55 |
| 56 class WorkerGlobalScope : public RefCounted<WorkerGlobalScope>, public Scrip
tWrappable, public ScriptExecutionContext, public EventTarget { | 56 class WorkerGlobalScope : public EventTarget, public RefCounted<WorkerGlobal
Scope>, public ScriptWrappable, public ScriptExecutionContext { |
| 57 public: | 57 public: |
| 58 virtual ~WorkerGlobalScope(); | 58 virtual ~WorkerGlobalScope(); |
| 59 | 59 |
| 60 virtual bool isWorkerGlobalScope() const OVERRIDE { return true; } | 60 virtual bool isWorkerGlobalScope() const OVERRIDE { return true; } |
| 61 | 61 |
| 62 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; | 62 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE; |
| 63 | 63 |
| 64 virtual bool isSharedWorkerGlobalScope() const { return false; } | 64 virtual bool isSharedWorkerGlobalScope() const { return false; } |
| 65 virtual bool isDedicatedWorkerGlobalScope() const { return false; } | 65 virtual bool isDedicatedWorkerGlobalScope() const { return false; } |
| 66 | 66 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) | 183 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) |
| 184 { | 184 { |
| 185 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope())
; | 185 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope())
; |
| 186 return static_cast<WorkerGlobalScope*>(context); | 186 return static_cast<WorkerGlobalScope*>(context); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace WebCore | 189 } // namespace WebCore |
| 190 | 190 |
| 191 #endif // WorkerGlobalScope_h | 191 #endif // WorkerGlobalScope_h |
| OLD | NEW |