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

Side by Side Diff: shell/in_process_native_runner.cc

Issue 1378303005: Do some plumbing. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: review Created 5 years, 2 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 | « shell/in_process_native_runner.h ('k') | shell/native_runner_unittest.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 "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
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
OLDNEW
« no previous file with comments | « shell/in_process_native_runner.h ('k') | shell/native_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698