| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/edk/js/threading.h" | 5 #include "mojo/edk/js/threading.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "gin/object_template_builder.h" | 8 #include "gin/object_template_builder.h" |
| 9 #include "gin/per_isolate_data.h" | 9 #include "gin/per_isolate_data.h" |
| 10 #include "mojo/edk/js/handle.h" | 10 #include "mojo/edk/js/handle.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 namespace edk { | 13 namespace edk { |
| 14 namespace js { |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 void Quit() { | 18 void Quit() { |
| 18 base::MessageLoop::current()->QuitNow(); | 19 base::MessageLoop::current()->QuitNow(); |
| 19 } | 20 } |
| 20 | 21 |
| 21 gin::WrapperInfo g_wrapper_info = { gin::kEmbedderNativeGin }; | 22 gin::WrapperInfo g_wrapper_info = { gin::kEmbedderNativeGin }; |
| 22 | 23 |
| 23 } // namespace | 24 } // namespace |
| (...skipping 12 matching lines...) Expand all Loading... |
| 36 | 37 |
| 37 data->SetObjectTemplate(&g_wrapper_info, templ); | 38 data->SetObjectTemplate(&g_wrapper_info, templ); |
| 38 } | 39 } |
| 39 | 40 |
| 40 return templ->NewInstance(); | 41 return templ->NewInstance(); |
| 41 } | 42 } |
| 42 | 43 |
| 43 Threading::Threading() { | 44 Threading::Threading() { |
| 44 } | 45 } |
| 45 | 46 |
| 47 } // namespace js |
| 46 } // namespace edk | 48 } // namespace edk |
| 47 } // namespace mojo | 49 } // namespace mojo |
| OLD | NEW |