OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/mojo/static_loader.h" | 5 #include "content/common/mojo/static_loader.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
14 #include "base/threading/simple_thread.h" | 14 #include "base/threading/simple_thread.h" |
15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
16 #include "mojo/shell/public/cpp/application_runner.h" | 16 #include "services/shell/public/cpp/application_runner.h" |
17 #include "mojo/shell/public/cpp/shell_client.h" | 17 #include "services/shell/public/cpp/shell_client.h" |
18 #include "mojo/shell/public/interfaces/shell_client.mojom.h" | 18 #include "services/shell/public/interfaces/shell_client.mojom.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class RunnerThread : public base::SimpleThread { | 24 class RunnerThread : public base::SimpleThread { |
25 public: | 25 public: |
26 RunnerThread(const std::string& name, | 26 RunnerThread(const std::string& name, |
27 mojo::shell::mojom::ShellClientRequest request, | 27 mojo::shell::mojom::ShellClientRequest request, |
28 scoped_refptr<base::TaskRunner> exit_task_runner, | 28 scoped_refptr<base::TaskRunner> exit_task_runner, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 void StaticLoader::StopAppThread() { | 86 void StaticLoader::StopAppThread() { |
87 thread_->Join(); | 87 thread_->Join(); |
88 thread_.reset(); | 88 thread_.reset(); |
89 if (!quit_callback_.is_null()) | 89 if (!quit_callback_.is_null()) |
90 quit_callback_.Run(); | 90 quit_callback_.Run(); |
91 } | 91 } |
92 | 92 |
93 } // namespace content | 93 } // namespace content |
OLD | NEW |