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

Side by Side Diff: Source/core/dom/SuspendableTask.h

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/core/dom/StyleEngine.h ('k') | Source/core/dom/TextLinkColors.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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SuspendableTask_h 5 #ifndef SuspendableTask_h
6 #define SuspendableTask_h 6 #define SuspendableTask_h
7 7
8 #include "wtf/Allocator.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 class SuspendableTask { 12 class SuspendableTask {
13 WTF_MAKE_FAST_ALLOCATED(SuspendableTask);
11 public: 14 public:
12 SuspendableTask() { } 15 SuspendableTask() { }
13 virtual void run() = 0; 16 virtual void run() = 0;
14 virtual void contextDestroyed() { } 17 virtual void contextDestroyed() { }
15 virtual ~SuspendableTask() { } 18 virtual ~SuspendableTask() { }
16 }; 19 };
17 20
18 } // namespace blink 21 } // namespace blink
19 22
20 #endif // SuspendableTask_h 23 #endif // SuspendableTask_h
OLDNEW
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/dom/TextLinkColors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698