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/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.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/multiprocess_embedder.h" |
28 #include "mojo/edk/embedder/simple_platform_support.h" | 28 #include "mojo/edk/embedder/simple_platform_support.h" |
29 #include "mojo/public/cpp/application/application_delegate.h" | |
30 #include "mojo/public/cpp/application/application_impl.h" | |
31 #include "mojo/public/cpp/application/connect.h" | 29 #include "mojo/public/cpp/application/connect.h" |
32 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h" | 30 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h" |
33 #include "mojo/services/tracing/interfaces/tracing.mojom.h" | 31 #include "mojo/services/tracing/interfaces/tracing.mojom.h" |
34 #include "shell/application_manager/application_loader.h" | 32 #include "shell/application_manager/application_loader.h" |
35 #include "shell/application_manager/application_manager.h" | 33 #include "shell/application_manager/application_manager.h" |
36 #include "shell/application_manager/native_application_options.h" | 34 #include "shell/application_manager/native_application_options.h" |
37 #include "shell/background_application_loader.h" | 35 #include "shell/background_application_loader.h" |
38 #include "shell/command_line_util.h" | 36 #include "shell/command_line_util.h" |
39 #include "shell/filename_util.h" | 37 #include "shell/filename_util.h" |
40 #include "shell/in_process_native_runner.h" | 38 #include "shell/in_process_native_runner.h" |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 if (app_urls_.find(url) != app_urls_.end()) { | 366 if (app_urls_.find(url) != app_urls_.end()) { |
369 app_urls_.erase(url); | 367 app_urls_.erase(url); |
370 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { | 368 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { |
371 DCHECK(task_runners_->shell_runner()->RunsTasksOnCurrentThread()); | 369 DCHECK(task_runners_->shell_runner()->RunsTasksOnCurrentThread()); |
372 base::MessageLoop::current()->Quit(); | 370 base::MessageLoop::current()->Quit(); |
373 } | 371 } |
374 } | 372 } |
375 } | 373 } |
376 | 374 |
377 } // namespace shell | 375 } // namespace shell |
OLD | NEW |