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

Side by Side Diff: ipc/ipc_mojo_bootstrap.cc

Issue 2664483002: Support sync mojo IPCs to and from bindings running on a sequence.
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ipc/ipc_mojo_bootstrap.h" 5 #include "ipc/ipc_mojo_bootstrap.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <queue> 11 #include <queue>
12 #include <utility> 12 #include <utility>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "base/threading/thread_checker.h"
21 #include "base/threading/thread_task_runner_handle.h" 22 #include "base/threading/thread_task_runner_handle.h"
22 #include "ipc/mojo_event.h" 23 #include "ipc/mojo_event.h"
23 #include "mojo/public/cpp/bindings/associated_group.h" 24 #include "mojo/public/cpp/bindings/associated_group.h"
24 #include "mojo/public/cpp/bindings/associated_group_controller.h" 25 #include "mojo/public/cpp/bindings/associated_group_controller.h"
25 #include "mojo/public/cpp/bindings/connector.h" 26 #include "mojo/public/cpp/bindings/connector.h"
26 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" 27 #include "mojo/public/cpp/bindings/interface_endpoint_client.h"
27 #include "mojo/public/cpp/bindings/interface_endpoint_controller.h" 28 #include "mojo/public/cpp/bindings/interface_endpoint_controller.h"
28 #include "mojo/public/cpp/bindings/interface_id.h" 29 #include "mojo/public/cpp/bindings/interface_id.h"
29 #include "mojo/public/cpp/bindings/message.h" 30 #include "mojo/public/cpp/bindings/message.h"
30 #include "mojo/public/cpp/bindings/message_header_validator.h" 31 #include "mojo/public/cpp/bindings/message_header_validator.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 Channel::Mode mode, 879 Channel::Mode mode,
879 Delegate* delegate, 880 Delegate* delegate,
880 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { 881 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
881 return base::MakeUnique<MojoBootstrapImpl>( 882 return base::MakeUnique<MojoBootstrapImpl>(
882 std::move(handle), delegate, 883 std::move(handle), delegate,
883 new ChannelAssociatedGroupController(mode == Channel::MODE_SERVER, 884 new ChannelAssociatedGroupController(mode == Channel::MODE_SERVER,
884 ipc_task_runner)); 885 ipc_task_runner));
885 } 886 }
886 887
887 } // namespace IPC 888 } // namespace IPC
OLDNEW
« no previous file with comments | « content/browser/dom_storage/local_storage_context_mojo.cc ('k') | mojo/public/cpp/bindings/lib/multiplex_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698