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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 21 matching lines...) Expand all
32 #define WorkerClients_h 32 #define WorkerClients_h
33 33
34 #include "platform/Supplementable.h" 34 #include "platform/Supplementable.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 // This is created on the main thread, passed to the worker thread and 39 // This is created on the main thread, passed to the worker thread and
40 // attached to WorkerGlobalScope when it is created. 40 // attached to WorkerGlobalScope when it is created.
41 // This class can be used to provide "client" implementations to Workers. 41 // This class can be used to provide "client" implementations to Workers.
42 class WorkerClients final : public GarbageCollectedFinalized<WorkerClients>, pub lic HeapSupplementable<WorkerClients> { 42 class WorkerClients final : public GarbageCollectedFinalized<WorkerClients>, pub lic Supplementable<WorkerClients> {
43 USING_GARBAGE_COLLECTED_MIXIN(WorkerClients); 43 USING_GARBAGE_COLLECTED_MIXIN(WorkerClients);
44 WTF_MAKE_NONCOPYABLE(WorkerClients); 44 WTF_MAKE_NONCOPYABLE(WorkerClients);
45 public: 45 public:
46 static RawPtr<WorkerClients> create() 46 static WorkerClients* create()
47 { 47 {
48 return new WorkerClients(); 48 return new WorkerClients;
49 } 49 }
50 50
51 virtual ~WorkerClients() { }
52
53 #if ENABLE(OILPAN)
54 DEFINE_INLINE_VIRTUAL_TRACE() 51 DEFINE_INLINE_VIRTUAL_TRACE()
55 { 52 {
56 HeapSupplementable<WorkerClients>::trace(visitor); 53 Supplementable<WorkerClients>::trace(visitor);
57 } 54 }
58 #endif
59 55
60 private: 56 private:
61 WorkerClients() { } 57 WorkerClients() { }
62 }; 58 };
63 59
64 } // namespace blink 60 } // namespace blink
65 61
66 #endif // WorkerClients_h 62 #endif // WorkerClients_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/SharedWorker.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698