| Index: mojo/public/cpp/bindings/associated_binding.h
|
| diff --git a/mojo/public/cpp/bindings/associated_binding.h b/mojo/public/cpp/bindings/associated_binding.h
|
| index 0a95da430e54ebb8b7d8f95fb4e669311b7fb0b4..3252b5c985fa160264929dada0aa981fd6d7bdfb 100644
|
| --- a/mojo/public/cpp/bindings/associated_binding.h
|
| +++ b/mojo/public/cpp/bindings/associated_binding.h
|
| @@ -14,8 +14,8 @@
|
| #include "base/macros.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/single_thread_task_runner.h"
|
| -#include "base/threading/thread_task_runner_handle.h"
|
| +#include "base/sequenced_task_runner.h"
|
| +#include "base/threading/sequenced_task_runner_handle.h"
|
| #include "mojo/public/cpp/bindings/associated_group.h"
|
| #include "mojo/public/cpp/bindings/associated_group_controller.h"
|
| #include "mojo/public/cpp/bindings/associated_interface_request.h"
|
| @@ -33,7 +33,7 @@ class MessageReceiver;
|
| // to Binding, except that it doesn't own a message pipe handle.
|
| //
|
| // When you bind this class to a request, optionally you can specify a
|
| -// base::SingleThreadTaskRunner. This task runner must belong to the same
|
| +// base::SequencedTaskRunner. This task runner must belong to the same
|
| // thread. It will be used to dispatch incoming method calls and connection
|
| // error notification. It is useful when you attach multiple task runners to a
|
| // single thread for the purposes of task scheduling. Please note that incoming
|
| @@ -58,8 +58,8 @@ class AssociatedBinding {
|
| AssociatedBinding(ImplPointerType impl,
|
| AssociatedInterfacePtrInfo<Interface>* ptr_info,
|
| AssociatedGroup* associated_group,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner =
|
| - base::ThreadTaskRunnerHandle::Get())
|
| + scoped_refptr<base::SequencedTaskRunner> runner =
|
| + base::SequencedTaskRunnerHandle::Get())
|
| : AssociatedBinding(std::move(impl)) {
|
| Bind(ptr_info, associated_group, std::move(runner));
|
| }
|
| @@ -68,8 +68,8 @@ class AssociatedBinding {
|
| // the binding.
|
| AssociatedBinding(ImplPointerType impl,
|
| AssociatedInterfaceRequest<Interface> request,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner =
|
| - base::ThreadTaskRunnerHandle::Get())
|
| + scoped_refptr<base::SequencedTaskRunner> runner =
|
| + base::SequencedTaskRunnerHandle::Get())
|
| : AssociatedBinding(std::move(impl)) {
|
| Bind(std::move(request), std::move(runner));
|
| }
|
| @@ -82,8 +82,8 @@ class AssociatedBinding {
|
| // corresponding asssociated interface pointer.
|
| void Bind(AssociatedInterfacePtrInfo<Interface>* ptr_info,
|
| AssociatedGroup* associated_group,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner =
|
| - base::ThreadTaskRunnerHandle::Get()) {
|
| + scoped_refptr<base::SequencedTaskRunner> runner =
|
| + base::SequencedTaskRunnerHandle::Get()) {
|
| AssociatedInterfaceRequest<Interface> request;
|
| associated_group->CreateAssociatedInterface(AssociatedGroup::WILL_PASS_PTR,
|
| ptr_info, &request);
|
| @@ -92,8 +92,8 @@ class AssociatedBinding {
|
|
|
| // Sets up this object as the implementation side of an associated interface.
|
| void Bind(AssociatedInterfaceRequest<Interface> request,
|
| - scoped_refptr<base::SingleThreadTaskRunner> runner =
|
| - base::ThreadTaskRunnerHandle::Get()) {
|
| + scoped_refptr<base::SequencedTaskRunner> runner =
|
| + base::SequencedTaskRunnerHandle::Get()) {
|
| ScopedInterfaceEndpointHandle handle = request.PassHandle();
|
|
|
| DCHECK(handle.is_local())
|
|
|