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 "mojo/shell/public/cpp/application_runner.h" | 5 #include "services/shell/public/cpp/application_runner.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/process/launch.h" | 12 #include "base/process/launch.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "mojo/shell/public/cpp/shell_client.h" | 14 #include "services/shell/public/cpp/shell_client.h" |
15 #include "mojo/shell/public/cpp/shell_connection.h" | 15 #include "services/shell/public/cpp/shell_connection.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 int g_application_runner_argc; | 19 int g_application_runner_argc; |
20 const char* const* g_application_runner_argv; | 20 const char* const* g_application_runner_argv; |
21 | 21 |
22 ApplicationRunner::ApplicationRunner(ShellClient* client) | 22 ApplicationRunner::ApplicationRunner(ShellClient* client) |
23 : client_(scoped_ptr<ShellClient>(client)), | 23 : client_(scoped_ptr<ShellClient>(client)), |
24 message_loop_type_(base::MessageLoop::TYPE_DEFAULT), | 24 message_loop_type_(base::MessageLoop::TYPE_DEFAULT), |
25 has_run_(false) {} | 25 has_run_(false) {} |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 void ApplicationRunner::DestroyShellConnection() { | 84 void ApplicationRunner::DestroyShellConnection() { |
85 connection_.reset(); | 85 connection_.reset(); |
86 } | 86 } |
87 | 87 |
88 void ApplicationRunner::Quit() { | 88 void ApplicationRunner::Quit() { |
89 base::MessageLoop::current()->QuitWhenIdle(); | 89 base::MessageLoop::current()->QuitWhenIdle(); |
90 } | 90 } |
91 | 91 |
92 } // namespace mojo | 92 } // namespace mojo |
OLD | NEW |