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

Unified Diff: chrome/common/render_messages.h

Issue 6598053: P2P Sockets host implementation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: - Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/render_messages.h
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 3e0f9ba744048c229647c8ee3ec1e9f2b20db64c..e6b04930c344986449a33398ade75c900a851ca4 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" // enum P2PSocketType
#include "chrome/common/page_transition_types.h"
#include "chrome/common/translate_errors.h"
#include "chrome/common/view_types.h"
@@ -72,9 +73,9 @@ class SkBitmap;
class URLPattern;
struct ContextMenuParams;
struct EditCommand;
+struct RendererPreferences;
struct ResourceResponseHead;
struct SyncLoadResult;
-struct RendererPreferences;
struct WebDropData;
struct WebMenuItem;
struct WebPreferences;
@@ -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"

Powered by Google App Engine
This is Rietveld 408576698