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

Side by Side Diff: third_party/WebKit/Source/core/workers/DedicatedWorkerGlobalScope.h

Issue 1992933002: Introduce WorkletGlobalScopeProxy interface. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests. Created 4 years, 6 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
OLDNEW
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 26 matching lines...) Expand all
37 #include "platform/heap/Visitor.h" 37 #include "platform/heap/Visitor.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class DedicatedWorkerThread; 41 class DedicatedWorkerThread;
42 class WorkerThreadStartupData; 42 class WorkerThreadStartupData;
43 43
44 class CORE_EXPORT DedicatedWorkerGlobalScope final : public WorkerGlobalScope { 44 class CORE_EXPORT DedicatedWorkerGlobalScope final : public WorkerGlobalScope {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 public: 46 public:
47 static DedicatedWorkerGlobalScope* create(DedicatedWorkerThread*, PassOwnPtr <WorkerThreadStartupData>, double timeOrigin); 47 static DedicatedWorkerGlobalScope* create(DedicatedWorkerThread*, WorkerThre adStartupData*, double timeOrigin);
48 ~DedicatedWorkerGlobalScope() override; 48 ~DedicatedWorkerGlobalScope() override;
49 49
50 bool isDedicatedWorkerGlobalScope() const override { return true; } 50 bool isDedicatedWorkerGlobalScope() const override { return true; }
51 void countFeature(UseCounter::Feature) const override; 51 void countFeature(UseCounter::Feature) const override;
52 void countDeprecation(UseCounter::Feature) const override; 52 void countDeprecation(UseCounter::Feature) const override;
53 53
54 // EventTarget 54 // EventTarget
55 const AtomicString& interfaceName() const override; 55 const AtomicString& interfaceName() const override;
56 56
57 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const MessagePortArray&, ExceptionState&); 57 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue>, const MessagePortArray&, ExceptionState&);
58 58
59 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 59 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
60 60
61 DedicatedWorkerThread* thread() const; 61 DedicatedWorkerThread* thread() const;
62 62
63 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
64 64
65 private: 65 private:
66 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo rkerThread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, Worke rClients*); 66 DedicatedWorkerGlobalScope(const KURL&, const String& userAgent, DedicatedWo rkerThread*, double timeOrigin, PassOwnPtr<SecurityOrigin::PrivilegeData>, Worke rClients*);
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // DedicatedWorkerGlobalScope_h 71 #endif // DedicatedWorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698