| 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/runner/context.h" | 5 #include "mojo/runner/context.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "mojo/edk/embedder/simple_platform_support.h" | 25 #include "mojo/edk/embedder/simple_platform_support.h" |
| 26 #include "mojo/public/cpp/application/application_connection.h" | 26 #include "mojo/public/cpp/application/application_connection.h" |
| 27 #include "mojo/public/cpp/application/application_delegate.h" | 27 #include "mojo/public/cpp/application/application_delegate.h" |
| 28 #include "mojo/public/cpp/application/application_impl.h" | 28 #include "mojo/public/cpp/application/application_impl.h" |
| 29 #include "mojo/runner/in_process_native_runner.h" | 29 #include "mojo/runner/in_process_native_runner.h" |
| 30 #include "mojo/runner/out_of_process_native_runner.h" | 30 #include "mojo/runner/out_of_process_native_runner.h" |
| 31 #include "mojo/runner/switches.h" | 31 #include "mojo/runner/switches.h" |
| 32 #include "mojo/services/tracing/tracing.mojom.h" | 32 #include "mojo/services/tracing/tracing.mojom.h" |
| 33 #include "mojo/shell/application_loader.h" | 33 #include "mojo/shell/application_loader.h" |
| 34 #include "mojo/shell/application_manager.h" | 34 #include "mojo/shell/application_manager.h" |
| 35 #include "mojo/shell/switches.h" |
| 35 #include "mojo/util/filename_util.h" | 36 #include "mojo/util/filename_util.h" |
| 36 #include "url/gurl.h" | 37 #include "url/gurl.h" |
| 37 | 38 |
| 38 namespace mojo { | 39 namespace mojo { |
| 39 namespace runner { | 40 namespace runner { |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 // Used to ensure we only init once. | 43 // Used to ensure we only init once. |
| 43 class Setup { | 44 class Setup { |
| 44 public: | 45 public: |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { | 318 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { |
| 318 DCHECK_EQ(base::MessageLoop::current()->task_runner(), | 319 DCHECK_EQ(base::MessageLoop::current()->task_runner(), |
| 319 task_runners_->shell_runner()); | 320 task_runners_->shell_runner()); |
| 320 base::MessageLoop::current()->Quit(); | 321 base::MessageLoop::current()->Quit(); |
| 321 } | 322 } |
| 322 } | 323 } |
| 323 } | 324 } |
| 324 | 325 |
| 325 } // namespace runner | 326 } // namespace runner |
| 326 } // namespace mojo | 327 } // namespace mojo |
| OLD | NEW |