| Index: chrome/common/render_messages.h
|
| diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
|
| index 3e0f9ba744048c229647c8ee3ec1e9f2b20db64c..4d770ad1e81b38aff91f5a14ad0c178ab08b4637 100644
|
| --- a/chrome/common/render_messages.h
|
| +++ b/chrome/common/render_messages.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -16,6 +16,7 @@
|
| #include "base/string16.h"
|
| #include "chrome/common/common_param_traits.h"
|
| #include "chrome/common/css_colors.h"
|
| +#include "chrome/common/p2p_sockets.h"
|
| #include "chrome/common/page_transition_types.h"
|
| #include "chrome/common/translate_errors.h"
|
| #include "chrome/common/view_types.h"
|
| @@ -530,6 +531,19 @@ struct ParamTraits<AudioBuffersState> {
|
| static void Log(const param_type& p, std::string* l);
|
| };
|
|
|
| +template <>
|
| +struct ParamTraits<P2PSocketAddress> {
|
| + typedef P2PSocketAddress param_type;
|
| + static void Write(Message* m, const param_type& p);
|
| + static bool Read(const Message* m, void** iter, param_type* p);
|
| + static void Log(const param_type& p, std::string* l);
|
| +};
|
| +
|
| +template <>
|
| +struct SimilarTypeTraits<P2PSocketType> {
|
| + typedef int Type;
|
| +};
|
| +
|
| } // namespace IPC
|
|
|
| #include "chrome/common/render_messages_internal.h"
|
|
|