| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 #include <utility> | 6 #include <utility> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/threading/sequenced_task_runner_handle.h" | 13 #include "base/threading/sequenced_task_runner_handle.h" |
| 13 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
| 15 #include "mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 16 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" | 17 #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" |
| 17 #include "mojo/public/interfaces/bindings/tests/math_calculator.mojom.h" | 18 #include "mojo/public/interfaces/bindings/tests/math_calculator.mojom.h" |
| 18 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" | 19 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" |
| 19 #include "mojo/public/interfaces/bindings/tests/sample_service.mojom.h" | 20 #include "mojo/public/interfaces/bindings/tests/sample_service.mojom.h" |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 other_thread_task_runner->DeleteSoon(FROM_HERE, math_calc_impl); | 901 other_thread_task_runner->DeleteSoon(FROM_HERE, math_calc_impl); |
| 901 | 902 |
| 902 // Reset the pointer now so the InterfacePtr associated resources can be | 903 // Reset the pointer now so the InterfacePtr associated resources can be |
| 903 // deleted before the background thread's message loop is invalidated. | 904 // deleted before the background thread's message loop is invalidated. |
| 904 thread_safe_ptr = nullptr; | 905 thread_safe_ptr = nullptr; |
| 905 } | 906 } |
| 906 | 907 |
| 907 } // namespace | 908 } // namespace |
| 908 } // namespace test | 909 } // namespace test |
| 909 } // namespace mojo | 910 } // namespace mojo |
| OLD | NEW |