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

Side by Side Diff: gin/run_microtasks_observer.h

Issue 629153002: Replacing the OVERRIDE with override and FINAL with final in /src/gin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « gin/interceptor_unittest.cc ('k') | gin/shell_runner.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 GIN_RUN_MICROTASKS_OBSERVER_H_ 5 #ifndef GIN_RUN_MICROTASKS_OBSERVER_H_
6 #define GIN_RUN_MICROTASKS_OBSERVER_H_ 6 #define GIN_RUN_MICROTASKS_OBSERVER_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "v8/include/v8.h" 9 #include "v8/include/v8.h"
10 10
11 namespace gin { 11 namespace gin {
12 12
13 // Runs any pending v8 Microtasks each time a task is completed. 13 // Runs any pending v8 Microtasks each time a task is completed.
14 // TODO(hansmuller); At some point perhaps this can be replaced with 14 // TODO(hansmuller); At some point perhaps this can be replaced with
15 // the (currently experimental) Isolate::SetAutorunMicrotasks() method. 15 // the (currently experimental) Isolate::SetAutorunMicrotasks() method.
16 16
17 class RunMicrotasksObserver : public base::MessageLoop::TaskObserver { 17 class RunMicrotasksObserver : public base::MessageLoop::TaskObserver {
18 public: 18 public:
19 RunMicrotasksObserver(v8::Isolate* isolate); 19 RunMicrotasksObserver(v8::Isolate* isolate);
20 20
21 virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE; 21 virtual void WillProcessTask(const base::PendingTask& pending_task) override;
22 virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE; 22 virtual void DidProcessTask(const base::PendingTask& pending_task) override;
23 23
24 private: 24 private:
25 v8::Isolate* isolate_; 25 v8::Isolate* isolate_;
26 }; 26 };
27 27
28 } // namespace gin 28 } // namespace gin
29 29
30 #endif // GIN_RUN_MICROTASKS_OBSERVER_H_ 30 #endif // GIN_RUN_MICROTASKS_OBSERVER_H_
OLDNEW
« no previous file with comments | « gin/interceptor_unittest.cc ('k') | gin/shell_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698