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

Side by Side Diff: ipc/ipc_channel.h

Issue 11794011: Fix typo in comment ("ammount"). (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 11 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef IPC_IPC_CHANNEL_H_
6 #define IPC_IPC_CHANNEL_H_ 6 #define IPC_IPC_CHANNEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 HELLO_MESSAGE_TYPE = kuint16max // Maximum value of message type (uint16), 83 HELLO_MESSAGE_TYPE = kuint16max // Maximum value of message type (uint16),
84 // to avoid conflicting with normal 84 // to avoid conflicting with normal
85 // message types, which are enumeration 85 // message types, which are enumeration
86 // constants starting from 0. 86 // constants starting from 0.
87 }; 87 };
88 88
89 // The maximum message size in bytes. Attempting to receive a message of this 89 // The maximum message size in bytes. Attempting to receive a message of this
90 // size or bigger results in a channel error. 90 // size or bigger results in a channel error.
91 static const size_t kMaximumMessageSize = 128 * 1024 * 1024; 91 static const size_t kMaximumMessageSize = 128 * 1024 * 1024;
92 92
93 // Ammount of data to read at once from the pipe. 93 // Amount of data to read at once from the pipe.
94 static const size_t kReadBufferSize = 4 * 1024; 94 static const size_t kReadBufferSize = 4 * 1024;
95 95
96 // Initialize a Channel. 96 // Initialize a Channel.
97 // 97 //
98 // |channel_handle| identifies the communication Channel. For POSIX, if 98 // |channel_handle| identifies the communication Channel. For POSIX, if
99 // the file descriptor in the channel handle is != -1, the channel takes 99 // the file descriptor in the channel handle is != -1, the channel takes
100 // ownership of the file descriptor and will close it appropriately, otherwise 100 // ownership of the file descriptor and will close it appropriately, otherwise
101 // it will create a new descriptor internally. 101 // it will create a new descriptor internally.
102 // |mode| specifies whether this Channel is to operate in server mode or 102 // |mode| specifies whether this Channel is to operate in server mode or
103 // client mode. In server mode, the Channel is responsible for setting up the 103 // client mode. In server mode, the Channel is responsible for setting up the
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 private: 210 private:
211 // PIMPL to which all channel calls are delegated. 211 // PIMPL to which all channel calls are delegated.
212 class ChannelImpl; 212 class ChannelImpl;
213 ChannelImpl *channel_impl_; 213 ChannelImpl *channel_impl_;
214 }; 214 };
215 215
216 } // namespace IPC 216 } // namespace IPC
217 217
218 #endif // IPC_IPC_CHANNEL_H_ 218 #endif // IPC_IPC_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698