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_native_runner.h" | 5 #include "shell/in_process_native_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/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // TODO(vtl): ScopedNativeLibrary doesn't have a .get() method! | 56 // TODO(vtl): ScopedNativeLibrary doesn't have a .get() method! |
57 base::NativeLibrary app_library = LoadNativeApplication(app_path_); | 57 base::NativeLibrary app_library = LoadNativeApplication(app_path_); |
58 app_library_.Reset(app_library); | 58 app_library_.Reset(app_library); |
59 RunNativeApplication(app_library, application_request_.Pass()); | 59 RunNativeApplication(app_library, 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> InProcessNativeRunnerFactory::Create( | 64 scoped_ptr<NativeRunner> InProcessNativeRunnerFactory::Create( |
65 const Options& options) { | 65 const NativeApplicationOptions& /*options*/) { |
66 return make_scoped_ptr(new InProcessNativeRunner(context_)); | 66 return make_scoped_ptr(new InProcessNativeRunner(context_)); |
67 } | 67 } |
68 | 68 |
69 } // namespace shell | 69 } // namespace shell |
OLD | NEW |