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

Side by Side Diff: third_party/WebKit/Source/core/mojo/MojoWatcher.cpp

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "core/mojo/MojoWatcher.h" 5 #include "core/mojo/MojoWatcher.h"
6 6
7 #include "bindings/core/v8/MojoWatchCallback.h" 7 #include "bindings/core/v8/MojoWatchCallback.h"
8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
10 #include "core/dom/TaskRunnerHelper.h" 9 #include "core/dom/TaskRunnerHelper.h"
11 #include "core/mojo/MojoHandleSignals.h" 10 #include "core/mojo/MojoHandleSignals.h"
12 #include "platform/CrossThreadFunctional.h" 11 #include "platform/CrossThreadFunctional.h"
13 #include "platform/WebTaskRunner.h" 12 #include "platform/WebTaskRunner.h"
13 #include "platform/bindings/ScriptState.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 static void RunWatchCallback(MojoWatchCallback* callback, 17 static void RunWatchCallback(MojoWatchCallback* callback,
18 ScriptWrappable* wrappable, 18 ScriptWrappable* wrappable,
19 MojoResult result) { 19 MojoResult result) {
20 callback->call(wrappable, result); 20 callback->call(wrappable, result);
21 } 21 }
22 22
23 // static 23 // static
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return; 181 return;
182 182
183 DCHECK_EQ(MOJO_RESULT_FAILED_PRECONDITION, arm_result); 183 DCHECK_EQ(MOJO_RESULT_FAILED_PRECONDITION, arm_result);
184 184
185 task_runner_->PostTask(BLINK_FROM_HERE, 185 task_runner_->PostTask(BLINK_FROM_HERE,
186 WTF::Bind(&MojoWatcher::RunReadyCallback, 186 WTF::Bind(&MojoWatcher::RunReadyCallback,
187 WrapWeakPersistent(this), ready_result)); 187 WrapWeakPersistent(this), ready_result));
188 } 188 }
189 189
190 } // namespace blink 190 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/mojo/MojoWatcher.h ('k') | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698