OLD | NEW |
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 "mojo/edk/embedder/embedder.h" | 5 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
6 | 6 |
7 #include "base/atomicops.h" | 7 #include "base/atomicops.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/task_runner.h" | 13 #include "base/task_runner.h" |
14 #include "mojo/edk/embedder/embedder_internal.h" | 14 #include "third_party/mojo/src/mojo/edk/embedder/embedder_internal.h" |
15 #include "mojo/edk/embedder/master_process_delegate.h" | 15 #include "third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h" |
16 #include "mojo/edk/embedder/platform_support.h" | 16 #include "third_party/mojo/src/mojo/edk/embedder/platform_support.h" |
17 #include "mojo/edk/embedder/process_delegate.h" | 17 #include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h" |
18 #include "mojo/edk/embedder/slave_process_delegate.h" | 18 #include "third_party/mojo/src/mojo/edk/embedder/slave_process_delegate.h" |
19 #include "mojo/edk/system/channel.h" | 19 #include "third_party/mojo/src/mojo/edk/system/channel.h" |
20 #include "mojo/edk/system/channel_manager.h" | 20 #include "third_party/mojo/src/mojo/edk/system/channel_manager.h" |
21 #include "mojo/edk/system/configuration.h" | 21 #include "third_party/mojo/src/mojo/edk/system/configuration.h" |
22 #include "mojo/edk/system/core.h" | 22 #include "third_party/mojo/src/mojo/edk/system/core.h" |
23 #include "mojo/edk/system/ipc_support.h" | 23 #include "third_party/mojo/src/mojo/edk/system/ipc_support.h" |
24 #include "mojo/edk/system/message_pipe_dispatcher.h" | 24 #include "third_party/mojo/src/mojo/edk/system/message_pipe_dispatcher.h" |
25 #include "mojo/edk/system/platform_handle_dispatcher.h" | 25 #include "third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.h" |
26 #include "mojo/edk/system/raw_channel.h" | 26 #include "third_party/mojo/src/mojo/edk/system/raw_channel.h" |
27 | 27 |
28 namespace mojo { | 28 namespace mojo { |
29 namespace embedder { | 29 namespace embedder { |
30 | 30 |
31 namespace internal { | 31 namespace internal { |
32 | 32 |
33 // Declared in embedder_internal.h. | 33 // Declared in embedder_internal.h. |
34 PlatformSupport* g_platform_support = nullptr; | 34 PlatformSupport* g_platform_support = nullptr; |
35 system::Core* g_core = nullptr; | 35 system::Core* g_core = nullptr; |
36 system::IPCSupport* g_ipc_support = nullptr; | 36 system::IPCSupport* g_ipc_support = nullptr; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 DCHECK(channel_info); | 314 DCHECK(channel_info); |
315 DCHECK(internal::g_ipc_support); | 315 DCHECK(internal::g_ipc_support); |
316 | 316 |
317 system::ChannelManager* channel_manager = | 317 system::ChannelManager* channel_manager = |
318 internal::g_ipc_support->channel_manager(); | 318 internal::g_ipc_support->channel_manager(); |
319 channel_manager->WillShutdownChannel(channel_info->channel_id); | 319 channel_manager->WillShutdownChannel(channel_info->channel_id); |
320 } | 320 } |
321 | 321 |
322 } // namespace embedder | 322 } // namespace embedder |
323 } // namespace mojo | 323 } // namespace mojo |
OLD | NEW |