OLD | NEW |
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 #include "ipc/ipc_channel_reader.h" | 5 #include "ipc/ipc_channel_reader.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
10 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
11 #include "ipc/ipc_logging.h" | 13 #include "ipc/ipc_logging.h" |
12 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
13 #include "ipc/ipc_message_attachment_set.h" | 15 #include "ipc/ipc_message_attachment_set.h" |
14 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
15 #include "ipc/ipc_message_start.h" | 17 #include "ipc/ipc_message_start.h" |
16 | 18 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 if (size <= Channel::kMaximumMessageSize) { | 334 if (size <= Channel::kMaximumMessageSize) { |
333 return true; | 335 return true; |
334 } | 336 } |
335 input_overflow_buf_.clear(); | 337 input_overflow_buf_.clear(); |
336 LOG(ERROR) << "IPC message is too big: " << size; | 338 LOG(ERROR) << "IPC message is too big: " << size; |
337 return false; | 339 return false; |
338 } | 340 } |
339 | 341 |
340 } // namespace internal | 342 } // namespace internal |
341 } // namespace IPC | 343 } // namespace IPC |
OLD | NEW |