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

Side by Side Diff: ipc/ipc_channel_posix.h

Issue 6596093: Add some bullet proofing to ipc_channel_posix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/ipc
Patch Set: replace NOTREACHED with LOG(ERROR) Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ipc/ipc_channel_posix.cc » ('j') | ipc/ipc_channel_posix.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 #ifndef IPC_IPC_CHANNEL_POSIX_H_ 5 #ifndef IPC_IPC_CHANNEL_POSIX_H_
6 #define IPC_IPC_CHANNEL_POSIX_H_ 6 #define IPC_IPC_CHANNEL_POSIX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ipc/ipc_channel.h" 9 #include "ipc/ipc_channel.h"
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Large messages that span multiple pipe buffers, get built-up using 133 // Large messages that span multiple pipe buffers, get built-up using
134 // this buffer. 134 // this buffer.
135 std::string input_overflow_buf_; 135 std::string input_overflow_buf_;
136 std::vector<int> input_overflow_fds_; 136 std::vector<int> input_overflow_fds_;
137 137
138 // True if we are responsible for unlinking the unix domain socket file. 138 // True if we are responsible for unlinking the unix domain socket file.
139 bool must_unlink_; 139 bool must_unlink_;
140 140
141 ScopedRunnableMethodFactory<ChannelImpl> factory_; 141 ScopedRunnableMethodFactory<ChannelImpl> factory_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); 143 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelImpl);
144 }; 144 };
145 145
146 // The maximum length of the name of a pipe for MODE_NAMED_SERVER or 146 // The maximum length of the name of a pipe for MODE_NAMED_SERVER or
147 // MODE_NAMED_CLIENT if you want to pass in your own socket. 147 // MODE_NAMED_CLIENT if you want to pass in your own socket.
148 // The standard size on linux is 108, mac is 104. To maintain consistency 148 // The standard size on linux is 108, mac is 104. To maintain consistency
149 // across platforms we standardize on the smaller value. 149 // across platforms we standardize on the smaller value.
150 static const size_t kMaxPipeNameLength = 104; 150 static const size_t kMaxPipeNameLength = 104;
151 151
152 } // namespace IPC 152 } // namespace IPC
153 153
154 #endif // IPC_IPC_CHANNEL_POSIX_H_ 154 #endif // IPC_IPC_CHANNEL_POSIX_H_
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_channel_posix.cc » ('j') | ipc/ipc_channel_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698