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

Side by Side Diff: mojo/edk/system/channel.cc

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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
« no previous file with comments | « mojo/edk/system/channel.h ('k') | mojo/edk/system/channel_endpoint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/system/channel.h" 5 #include "mojo/edk/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/embedder/platform_handle_vector.h" 14 #include "mojo/edk/embedder/platform_handle_vector.h"
15 #include "mojo/system/message_pipe_endpoint.h" 15 #include "mojo/edk/system/message_pipe_endpoint.h"
16 #include "mojo/system/transport_data.h" 16 #include "mojo/edk/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
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
OLDNEW
« no previous file with comments | « mojo/edk/system/channel.h ('k') | mojo/edk/system/channel_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698