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

Side by Side Diff: mojo/runner/context.cc

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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 | « mojo/runner/context.h ('k') | mojo/runner/data_pipe_peek_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 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/shell/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"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/trace_event/trace_event.h" 20 #include "base/trace_event/trace_event.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "mojo/common/trace_controller_impl.h" 22 #include "mojo/common/trace_controller_impl.h"
23 #include "mojo/common/tracing_impl.h" 23 #include "mojo/common/tracing_impl.h"
24 #include "mojo/edk/embedder/embedder.h" 24 #include "mojo/edk/embedder/embedder.h"
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/filename_util.h"
30 #include "mojo/runner/in_process_native_runner.h"
31 #include "mojo/runner/out_of_process_native_runner.h"
32 #include "mojo/runner/switches.h"
29 #include "mojo/services/tracing/tracing.mojom.h" 33 #include "mojo/services/tracing/tracing.mojom.h"
30 #include "mojo/shell/application_manager/application_loader.h" 34 #include "mojo/shell/application_loader.h"
31 #include "mojo/shell/application_manager/application_manager.h" 35 #include "mojo/shell/application_manager.h"
32 #include "mojo/shell/filename_util.h"
33 #include "mojo/shell/in_process_native_runner.h"
34 #include "mojo/shell/out_of_process_native_runner.h"
35 #include "mojo/shell/switches.h"
36 #include "url/gurl.h" 36 #include "url/gurl.h"
37 37
38 namespace mojo { 38 namespace mojo {
39 namespace shell { 39 namespace shell {
40 namespace { 40 namespace {
41 41
42 // Used to ensure we only init once. 42 // Used to ensure we only init once.
43 class Setup { 43 class Setup {
44 public: 44 public:
45 Setup() { 45 Setup() {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) { 315 if (app_urls_.empty() && base::MessageLoop::current()->is_running()) {
316 DCHECK_EQ(base::MessageLoop::current()->task_runner(), 316 DCHECK_EQ(base::MessageLoop::current()->task_runner(),
317 task_runners_->shell_runner()); 317 task_runners_->shell_runner());
318 base::MessageLoop::current()->Quit(); 318 base::MessageLoop::current()->Quit();
319 } 319 }
320 } 320 }
321 } 321 }
322 322
323 } // namespace shell 323 } // namespace shell
324 } // namespace mojo 324 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/runner/context.h ('k') | mojo/runner/data_pipe_peek_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698