Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: Source/core/workers/WorkerGlobalScope.h

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ExecutionContext* executionContext() const OVERRIDE FINAL; 68 virtual ExecutionContext* executionContext() const OVERRIDE FINAL;
69 69
70 virtual bool isSharedWorkerGlobalScope() const { return false; }
71 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
72 virtual bool isServiceWorkerGlobalScope() const { return false; }
73 virtual void countFeature(UseCounter::Feature) const; 70 virtual void countFeature(UseCounter::Feature) const;
74 virtual void countDeprecation(UseCounter::Feature) const; 71 virtual void countDeprecation(UseCounter::Feature) const;
75 72
76 const KURL& url() const { return m_url; } 73 const KURL& url() const { return m_url; }
77 KURL completeURL(const String&) const; 74 KURL completeURL(const String&) const;
78 75
79 virtual String userAgent(const KURL&) const OVERRIDE FINAL; 76 virtual String userAgent(const KURL&) const OVERRIDE FINAL;
80 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; 77 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL;
81 78
82 WorkerScriptController* script() { return m_script.get(); } 79 WorkerScriptController* script() { return m_script.get(); }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 176
180 double m_timeOrigin; 177 double m_timeOrigin;
181 TerminationObserver* m_terminationObserver; 178 TerminationObserver* m_terminationObserver;
182 }; 179 };
183 180
184 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 181 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
185 182
186 } // namespace blink 183 } // namespace blink
187 184
188 #endif // WorkerGlobalScope_h 185 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698