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
3 // found in the LICENSE file.
5 #include "gin/run_microtasks_observer.h"
9 RunMicrotasksObserver::RunMicrotasksObserver(v8::Isolate
* isolate
)
13 void RunMicrotasksObserver::WillProcessTask(const base::PendingTask
& task
) {
16 void RunMicrotasksObserver::DidProcessTask(const base::PendingTask
& task
) {
17 v8::Isolate::Scope
scope(isolate_
);
18 isolate_
->RunMicrotasks();