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

Side by Side Diff: Source/core/workers/WorkerEventQueue.h

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/workers/WorkerConsole.h ('k') | Source/core/workers/WorkerEventQueue.cpp » ('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) 2010 Google Inc. All Rights Reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 25 matching lines...) Expand all
36 namespace blink { 36 namespace blink {
37 37
38 class Event; 38 class Event;
39 class ExecutionContext; 39 class ExecutionContext;
40 40
41 class WorkerEventQueue final : public EventQueue { 41 class WorkerEventQueue final : public EventQueue {
42 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerEventQueue); 42 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerEventQueue);
43 public: 43 public:
44 44
45 static PassOwnPtrWillBeRawPtr<WorkerEventQueue> create(ExecutionContext*); 45 static PassOwnPtrWillBeRawPtr<WorkerEventQueue> create(ExecutionContext*);
46 virtual ~WorkerEventQueue(); 46 ~WorkerEventQueue() override;
47 DECLARE_TRACE(); 47 DECLARE_TRACE();
48 48
49 // EventQueue 49 // EventQueue
50 virtual bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override; 50 bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override;
51 virtual bool cancelEvent(Event*) override; 51 bool cancelEvent(Event*) override;
52 virtual void close() override; 52 void close() override;
53 53
54 private: 54 private:
55 explicit WorkerEventQueue(ExecutionContext*); 55 explicit WorkerEventQueue(ExecutionContext*);
56 void removeEvent(Event*); 56 void removeEvent(Event*);
57 57
58 RawPtrWillBeMember<ExecutionContext> m_executionContext; 58 RawPtrWillBeMember<ExecutionContext> m_executionContext;
59 bool m_isClosed; 59 bool m_isClosed;
60 60
61 class EventDispatcherTask; 61 class EventDispatcherTask;
62 using EventTaskMap = WillBeHeapHashMap<RefPtrWillBeMember<Event>, EventDispa tcherTask*>; 62 using EventTaskMap = WillBeHeapHashMap<RefPtrWillBeMember<Event>, EventDispa tcherTask*>;
63 EventTaskMap m_eventTaskMap; 63 EventTaskMap m_eventTaskMap;
64 }; 64 };
65 65
66 } 66 }
67 67
68 #endif // WorkerEventQueue_h 68 #endif // WorkerEventQueue_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerConsole.h ('k') | Source/core/workers/WorkerEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698