| 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); |
| 46 public: | 47 public: |
| 47 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() | 48 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() |
| 48 { | 49 { |
| 49 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); | 50 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); |
| 50 } | 51 } |
| 51 | 52 |
| 52 ~WorkerGlobalScopeProxyProviderImpl() override { } | 53 ~WorkerGlobalScopeProxyProviderImpl() override { } |
| 53 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) override; | 54 WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) override; |
| 54 | 55 |
| 55 DEFINE_INLINE_VIRTUAL_TRACE() { WorkerGlobalScopeProxyProvider::trace(visito
r); } | 56 DEFINE_INLINE_VIRTUAL_TRACE() { WorkerGlobalScopeProxyProvider::trace(visito
r); } |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 WorkerGlobalScopeProxyProviderImpl() { } | 59 WorkerGlobalScopeProxyProviderImpl() { } |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 } // namespace blink | 62 } // namespace blink |
| 62 | 63 |
| 63 #endif // WorkerGlobalScopeProxyProviderImpl_h | 64 #endif // WorkerGlobalScopeProxyProviderImpl_h |
| OLD | NEW |