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

Side by Side Diff: Source/web/WorkerGlobalScopeProxyProviderImpl.h

Issue 1328773002: Make classes and structures in web fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/web/WorkerContentSettingsClient.h ('k') | Source/web/painting/PaintAggregator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/web/WorkerContentSettingsClient.h ('k') | Source/web/painting/PaintAggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698