Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 WebCore { | 37 namespace WebCore { |
| 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 : public Supplementable<WorkerClients> { | 42 class WorkerClients : public NoBaseWillBeGarbageCollectedFinalized<WorkerClients >, public Supplementable<WorkerClients> { |
| 43 WTF_MAKE_NONCOPYABLE(WorkerClients); | 43 WTF_MAKE_NONCOPYABLE(WorkerClients); |
| 44 public: | 44 public: |
| 45 static PassOwnPtr<WorkerClients> create() | 45 static PassOwnPtrWillBeRawPtr<WorkerClients> create() |
| 46 { | 46 { |
| 47 return adoptPtr(new WorkerClients()); | 47 return adoptPtrWillBeNoop(new WorkerClients()); |
| 48 } | 48 } |
| 49 | 49 |
| 50 virtual ~WorkerClients() { } | 50 virtual ~WorkerClients() { } |
| 51 | 51 |
| 52 virtual void trace(Visitor* visitor) | |
|
haraken
2014/04/09 09:04:39
Add OVERRIDE.
zerny-chromium
2014/04/09 09:31:47
Done.
| |
| 53 { | |
| 54 Supplementable<WorkerClients>::trace(visitor); | |
| 55 } | |
| 56 | |
| 52 private: | 57 private: |
| 53 WorkerClients() { } | 58 WorkerClients() { } |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 } // namespace WebCore | 61 } // namespace WebCore |
| 57 | 62 |
| 58 #endif // WorkerClients_h | 63 #endif // WorkerClients_h |
| OLD | NEW |