OLD | NEW |
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 "shell/in_process_dynamic_service_runner.h" | 5 #include "shell/in_process_dynamic_service_runner.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 DVLOG(2) << "Loading/running Mojo app in process from library: " | 54 DVLOG(2) << "Loading/running Mojo app in process from library: " |
55 << app_path_.value() | 55 << app_path_.value() |
56 << " thread id=" << base::PlatformThread::CurrentId(); | 56 << " thread id=" << base::PlatformThread::CurrentId(); |
57 | 57 |
58 app_library_.Reset(LoadAndRunNativeApplication(app_path_, cleanup_behavior_, | 58 app_library_.Reset(LoadAndRunNativeApplication(app_path_, cleanup_behavior_, |
59 application_request_.Pass())); | 59 application_request_.Pass())); |
60 app_completed_callback_runner_.Run(); | 60 app_completed_callback_runner_.Run(); |
61 app_completed_callback_runner_.Reset(); | 61 app_completed_callback_runner_.Reset(); |
62 } | 62 } |
63 | 63 |
| 64 scoped_ptr<NativeRunner> InProcessDynamicServiceRunnerFactory::Create( |
| 65 const Options& options) { |
| 66 return make_scoped_ptr(new InProcessDynamicServiceRunner(context_)); |
| 67 } |
| 68 |
64 } // namespace shell | 69 } // namespace shell |
65 } // namespace mojo | 70 } // namespace mojo |
OLD | NEW |