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

Side by Side Diff: services/js/system/core.cc

Issue 1801793003: Move mojo::{Wait,WaitMany}() to (the newly-added) mojo/public/cpp/system/wait.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | « mojo/public/platform/dart/mojo_natives.cc ('k') | services/tracing/tracing_app.cc » ('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 #include "services/js/system/core.h" 5 #include "services/js/system/core.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "gin/arguments.h" 9 #include "gin/arguments.h"
10 #include "gin/array_buffer.h" 10 #include "gin/array_buffer.h"
11 #include "gin/converter.h" 11 #include "gin/converter.h"
12 #include "gin/dictionary.h" 12 #include "gin/dictionary.h"
13 #include "gin/function_template.h" 13 #include "gin/function_template.h"
14 #include "gin/handle.h" 14 #include "gin/handle.h"
15 #include "gin/object_template_builder.h" 15 #include "gin/object_template_builder.h"
16 #include "gin/per_isolate_data.h" 16 #include "gin/per_isolate_data.h"
17 #include "gin/public/wrapper_info.h" 17 #include "gin/public/wrapper_info.h"
18 #include "gin/wrappable.h" 18 #include "gin/wrappable.h"
19 #include "mojo/public/cpp/system/wait.h"
19 #include "services/js/system/drain_data.h" 20 #include "services/js/system/drain_data.h"
20 #include "services/js/system/handle.h" 21 #include "services/js/system/handle.h"
21 22
22 namespace mojo { 23 namespace mojo {
23 namespace js { 24 namespace js {
24 25
25 namespace { 26 namespace {
26 27
27 MojoResult CloseHandle(gin::Handle<HandleWrapper> handle) { 28 MojoResult CloseHandle(gin::Handle<HandleWrapper> handle) {
28 if (!handle->get().is_valid()) 29 if (!handle->get().is_valid())
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 .Build(); 371 .Build();
371 372
372 data->SetObjectTemplate(&g_wrapper_info, templ); 373 data->SetObjectTemplate(&g_wrapper_info, templ);
373 } 374 }
374 375
375 return templ->NewInstance(); 376 return templ->NewInstance();
376 } 377 }
377 378
378 } // namespace js 379 } // namespace js
379 } // namespace mojo 380 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/platform/dart/mojo_natives.cc ('k') | services/tracing/tracing_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698