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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WorkerGlobalScopeProxyProviderImpl_h | 31 #ifndef WorkerGlobalScopeProxyProviderImpl_h |
32 #define WorkerGlobalScopeProxyProviderImpl_h | 32 #define WorkerGlobalScopeProxyProviderImpl_h |
33 | 33 |
34 #include "core/workers/WorkerGlobalScopeProxyProvider.h" | 34 #include "core/workers/WorkerGlobalScopeProxyProvider.h" |
35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
| 39 |
39 class Worker; | 40 class Worker; |
40 class WorkerGlobalScopeProxy; | 41 class WorkerGlobalScopeProxy; |
41 } | |
42 | 42 |
43 namespace blink { | 43 class WorkerGlobalScopeProxyProviderImpl FINAL : public NoBaseWillBeGarbageColle
ctedFinalized<WorkerGlobalScopeProxyProviderImpl>, public WorkerGlobalScopeProxy
Provider { |
44 | |
45 class WorkerGlobalScopeProxyProviderImpl FINAL : public NoBaseWillBeGarbageColle
ctedFinalized<WorkerGlobalScopeProxyProviderImpl>, public blink::WorkerGlobalSco
peProxyProvider { | |
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeProxyProviderImpl); | 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScopeProxyProviderImpl); |
47 WTF_MAKE_NONCOPYABLE(WorkerGlobalScopeProxyProviderImpl); | 45 WTF_MAKE_NONCOPYABLE(WorkerGlobalScopeProxyProviderImpl); |
48 public: | 46 public: |
49 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() | 47 static PassOwnPtrWillBeRawPtr<WorkerGlobalScopeProxyProviderImpl> create() |
50 { | 48 { |
51 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); | 49 return adoptPtrWillBeNoop(new WorkerGlobalScopeProxyProviderImpl()); |
52 } | 50 } |
53 | 51 |
54 virtual ~WorkerGlobalScopeProxyProviderImpl() { } | 52 virtual ~WorkerGlobalScopeProxyProviderImpl() { } |
55 virtual blink::WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(blink::W
orker*) OVERRIDE; | 53 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(Worker*) OVERRI
DE; |
56 | 54 |
57 virtual void trace(blink::Visitor* visitor) OVERRIDE { blink::WorkerGlobalSc
opeProxyProvider::trace(visitor); } | 55 virtual void trace(Visitor* visitor) OVERRIDE { WorkerGlobalScopeProxyProvid
er::trace(visitor); } |
58 | 56 |
59 private: | 57 private: |
60 WorkerGlobalScopeProxyProviderImpl() { } | 58 WorkerGlobalScopeProxyProviderImpl() { } |
61 }; | 59 }; |
62 | 60 |
63 } // namespace blink | 61 } // namespace blink |
64 | 62 |
65 #endif // WorkerGlobalScopeProxyProviderImpl_h | 63 #endif // WorkerGlobalScopeProxyProviderImpl_h |
OLD | NEW |