OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // This file contains templates forward declared (but not defined) in |
| 6 // ipc_message_utils.h so that they are only instantiated in certain files, |
| 7 // notably ipc_message_impl_macros.h and a few IPC unit tests. |
| 8 |
| 9 #ifndef IPC_IPC_MESSAGE_UTILS_IMPL_H_ |
| 10 #define IPC_IPC_MESSAGE_UTILS_IMPL_H_ |
| 11 |
| 12 namespace IPC { |
| 13 |
| 14 template <class ParamType> |
| 15 MessageWithTuple<ParamType>::MessageWithTuple( |
| 16 int32 routing_id, uint32 type, const RefParam& p) |
| 17 : Message(routing_id, type, PRIORITY_NORMAL) { |
| 18 WriteParam(this, p); |
| 19 } |
| 20 |
| 21 // TODO(erg): Migrate MessageWithTuple<ParamType>::Read() here once I figure |
| 22 // out why having the definition here doesn't export the symbols. |
| 23 |
| 24 // We can't migrate the template for Log() to MessageWithTuple, because each |
| 25 // subclass needs to have Log() to call Read(), which instantiates the above |
| 26 // template. |
| 27 |
| 28 } // namespace IPC |
| 29 |
| 30 #endif // IPC_IPC_MESSAGE_UTILS_IMPL_H_ |
OLD | NEW |