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 25 matching lines...) Expand all Loading... |
36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class Worker; | 40 class Worker; |
41 class WorkerGlobalScopeProxy; | 41 class WorkerGlobalScopeProxy; |
42 | 42 |
43 class WorkerGlobalScopeProxyProviderImpl final : public NoBaseWillBeGarbageColle
ctedFinalized<WorkerGlobalScopeProxyProviderImpl>, public WorkerGlobalScopeProxy
Provider { | 43 class WorkerGlobalScopeProxyProviderImpl final : public NoBaseWillBeGarbageColle
ctedFinalized<WorkerGlobalScopeProxyProviderImpl>, public WorkerGlobalScopeProxy
Provider { |
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeProxyProviderImpl); | 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeProxyProviderImpl); |
45 WTF_MAKE_NONCOPYABLE(WorkerGlobalScopeProxyProviderImpl); | 45 WTF_MAKE_NONCOPYABLE(WorkerGlobalScopeProxyProviderImpl); |
46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerGlobalScopeProxyProviderImpl); | |
47 public: | 46 public: |
48 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() | 47 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() |
49 { | 48 { |
50 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); | 49 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); |
51 } | 50 } |
52 | 51 |
53 ~WorkerGlobalScopeProxyProviderImpl() override { } | 52 ~WorkerGlobalScopeProxyProviderImpl() override { } |
54 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) override; | 53 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) override; |
55 | 54 |
56 DEFINE_INLINE_VIRTUAL_TRACE() { WorkerGlobalScopeProxyProvider::trace(visito
r); } | 55 DEFINE_INLINE_VIRTUAL_TRACE() { WorkerGlobalScopeProxyProvider::trace(visito
r); } |
57 | 56 |
58 private: | 57 private: |
59 WorkerGlobalScopeProxyProviderImpl() { } | 58 WorkerGlobalScopeProxyProviderImpl() { } |
60 }; | 59 }; |
61 | 60 |
62 } // namespace blink | 61 } // namespace blink |
63 | 62 |
64 #endif // WorkerGlobalScopeProxyProviderImpl_h | 63 #endif // WorkerGlobalScopeProxyProviderImpl_h |
OLD | NEW |