| 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 "shell/context.h" | 5 #include "shell/context.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/run_loop.h" | 19 #include "base/run_loop.h" |
| 20 #include "base/strings/string_split.h" | 20 #include "base/strings/string_split.h" |
| 21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
| 22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
| 23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "mojo/common/trace_provider_impl.h" | 24 #include "mojo/common/trace_provider_impl.h" |
| 25 #include "mojo/common/tracing_impl.h" | 25 #include "mojo/common/tracing_impl.h" |
| 26 #include "mojo/edk/embedder/embedder.h" | 26 #include "mojo/edk/embedder/embedder.h" |
| 27 #include "mojo/edk/embedder/multiprocess_embedder.h" |
| 27 #include "mojo/edk/embedder/simple_platform_support.h" | 28 #include "mojo/edk/embedder/simple_platform_support.h" |
| 28 #include "mojo/public/cpp/application/application_connection.h" | 29 #include "mojo/public/cpp/application/application_connection.h" |
| 29 #include "mojo/public/cpp/application/application_delegate.h" | 30 #include "mojo/public/cpp/application/application_delegate.h" |
| 30 #include "mojo/public/cpp/application/application_impl.h" | 31 #include "mojo/public/cpp/application/application_impl.h" |
| 31 #include "mojo/public/cpp/bindings/strong_binding.h" | 32 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 32 #include "mojo/services/tracing/interfaces/tracing.mojom.h" | 33 #include "mojo/services/tracing/interfaces/tracing.mojom.h" |
| 33 #include "shell/application_manager/application_loader.h" | 34 #include "shell/application_manager/application_loader.h" |
| 34 #include "shell/application_manager/application_manager.h" | 35 #include "shell/application_manager/application_manager.h" |
| 35 #include "shell/application_manager/native_application_options.h" | 36 #include "shell/application_manager/native_application_options.h" |
| 36 #include "shell/background_application_loader.h" | 37 #include "shell/background_application_loader.h" |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 if (app_urls_.find(url) != app_urls_.end()) { | 399 if (app_urls_.find(url) != app_urls_.end()) { |
| 399 app_urls_.erase(url); | 400 app_urls_.erase(url); |
| 400 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { | 401 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { |
| 401 DCHECK(task_runners_->shell_runner()->RunsTasksOnCurrentThread()); | 402 DCHECK(task_runners_->shell_runner()->RunsTasksOnCurrentThread()); |
| 402 base::MessageLoop::current()->Quit(); | 403 base::MessageLoop::current()->Quit(); |
| 403 } | 404 } |
| 404 } | 405 } |
| 405 } | 406 } |
| 406 | 407 |
| 407 } // namespace shell | 408 } // namespace shell |
| OLD | NEW |