| 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 "mojo/edk/embedder/embedder.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "mojo/edk/embedder/embedder_internal.h" | 13 #include "mojo/edk/embedder/embedder_internal.h" |
| 14 #include "mojo/edk/embedder/master_process_delegate.h" | 14 #include "mojo/edk/embedder/master_process_delegate.h" |
| 15 #include "mojo/edk/embedder/platform_support.h" | 15 #include "mojo/edk/embedder/platform_support.h" |
| 16 #include "mojo/edk/embedder/process_delegate.h" | 16 #include "mojo/edk/embedder/process_delegate.h" |
| 17 #include "mojo/edk/embedder/slave_process_delegate.h" | 17 #include "mojo/edk/embedder/slave_process_delegate.h" |
| 18 #include "mojo/edk/system/channel.h" | 18 #include "mojo/edk/system/channel.h" |
| 19 #include "mojo/edk/system/channel_manager.h" | 19 #include "mojo/edk/system/channel_manager.h" |
| 20 #include "mojo/edk/system/configuration.h" | 20 #include "mojo/edk/system/configuration.h" |
| 21 #include "mojo/edk/system/core.h" | 21 #include "mojo/edk/system/core.h" |
| 22 #include "mojo/edk/system/ipc_support.h" | 22 #include "mojo/edk/system/ipc_support.h" |
| 23 #include "mojo/edk/system/message_pipe_dispatcher.h" | 23 #include "mojo/edk/system/message_pipe_dispatcher.h" |
| 24 #include "mojo/edk/system/platform_handle_dispatcher.h" | 24 #include "mojo/edk/system/platform_handle_dispatcher.h" |
| 25 #include "mojo/edk/system/raw_channel.h" | 25 #include "mojo/edk/system/raw_channel.h" |
| 26 #include "mojo/edk/util/ref_ptr.h" | 26 #include "mojo/edk/util/ref_ptr.h" |
| 27 | 27 |
| 28 using mojo::platform::ScopedPlatformHandle; |
| 28 using mojo::platform::TaskRunner; | 29 using mojo::platform::TaskRunner; |
| 29 using mojo::util::RefPtr; | 30 using mojo::util::RefPtr; |
| 30 | 31 |
| 31 namespace mojo { | 32 namespace mojo { |
| 32 namespace embedder { | 33 namespace embedder { |
| 33 | 34 |
| 34 namespace internal { | 35 namespace internal { |
| 35 | 36 |
| 36 // Declared in embedder_internal.h. | 37 // Declared in embedder_internal.h. |
| 37 PlatformSupport* g_platform_support = nullptr; | 38 PlatformSupport* g_platform_support = nullptr; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 DCHECK(channel_info); | 306 DCHECK(channel_info); |
| 306 DCHECK(internal::g_ipc_support); | 307 DCHECK(internal::g_ipc_support); |
| 307 | 308 |
| 308 system::ChannelManager* channel_manager = | 309 system::ChannelManager* channel_manager = |
| 309 internal::g_ipc_support->channel_manager(); | 310 internal::g_ipc_support->channel_manager(); |
| 310 channel_manager->WillShutdownChannel(channel_info->channel_id); | 311 channel_manager->WillShutdownChannel(channel_info->channel_id); |
| 311 } | 312 } |
| 312 | 313 |
| 313 } // namespace embedder | 314 } // namespace embedder |
| 314 } // namespace mojo | 315 } // namespace mojo |
| OLD | NEW |