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 "mojo/edk/system/channel.h" | 5 #include "mojo/system/channel.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "mojo/edk/embedder/platform_handle_vector.h" | 14 #include "mojo/embedder/platform_handle_vector.h" |
15 #include "mojo/edk/system/message_pipe_endpoint.h" | 15 #include "mojo/system/message_pipe_endpoint.h" |
16 #include "mojo/edk/system/transport_data.h" | 16 #include "mojo/system/transport_data.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace system { | 19 namespace system { |
20 | 20 |
21 static_assert(Channel::kBootstrapEndpointId != | 21 static_assert(Channel::kBootstrapEndpointId != |
22 MessageInTransit::kInvalidEndpointId, | 22 MessageInTransit::kInvalidEndpointId, |
23 "kBootstrapEndpointId is invalid"); | 23 "kBootstrapEndpointId is invalid"); |
24 | 24 |
25 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::EndpointId | 25 STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::EndpointId |
26 Channel::kBootstrapEndpointId; | 26 Channel::kBootstrapEndpointId; |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 // TODO(vtl): Is this how we really want to handle this? | 515 // TODO(vtl): Is this how we really want to handle this? |
516 // Sometimes we'll want to propagate the error back to the message pipe | 516 // Sometimes we'll want to propagate the error back to the message pipe |
517 // (endpoint), and notify it that the remote is (effectively) closed. | 517 // (endpoint), and notify it that the remote is (effectively) closed. |
518 // Sometimes we'll want to kill the channel (and notify all the endpoints that | 518 // Sometimes we'll want to kill the channel (and notify all the endpoints that |
519 // their remotes are dead. | 519 // their remotes are dead. |
520 LOG(WARNING) << error_message; | 520 LOG(WARNING) << error_message; |
521 } | 521 } |
522 | 522 |
523 } // namespace system | 523 } // namespace system |
524 } // namespace mojo | 524 } // namespace mojo |
OLD | NEW |