| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/embedded_application_runner.h" | 5 #include "content/common/mojo/embedded_application_runner.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 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/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | |
| 14 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "services/shell/public/cpp/shell_connection.h" | 15 #include "services/shell/public/cpp/shell_connection.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class EmbeddedApplicationRunner::Instance | 19 class EmbeddedApplicationRunner::Instance |
| 20 : public base::RefCountedThreadSafe<Instance> { | 20 : public base::RefCountedThreadSafe<Instance> { |
| 21 public: | 21 public: |
| 22 explicit Instance( | 22 explicit Instance( |
| 23 const EmbeddedApplicationRunner::FactoryCallback& callback, | 23 const EmbeddedApplicationRunner::FactoryCallback& callback, |
| 24 const base::Closure& quit_closure) | 24 const base::Closure& quit_closure) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void EmbeddedApplicationRunner::SetQuitClosure( | 104 void EmbeddedApplicationRunner::SetQuitClosure( |
| 105 const base::Closure& quit_closure) { | 105 const base::Closure& quit_closure) { |
| 106 quit_closure_ = quit_closure; | 106 quit_closure_ = quit_closure; |
| 107 } | 107 } |
| 108 | 108 |
| 109 void EmbeddedApplicationRunner::OnQuit() { | 109 void EmbeddedApplicationRunner::OnQuit() { |
| 110 quit_closure_.Run(); | 110 quit_closure_.Run(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace content | 113 } // namespace content |
| OLD | NEW |