From 6766b170698ebf9dfdf6972e937aea7d60f2a713 Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Mon, 21 Nov 2011 18:29:36 +0000 Subject: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver interface not use a struct from it. Instead, the interface uses a new struct, content::FrameNavigateParams, that's in the public directory. The IPC message's struct derives from it. BUG=98716 Review URL: http://codereview.chromium.org/8603015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110963 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/ipc_message_macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipc/ipc_message_macros.h') diff --git a/ipc/ipc_message_macros.h b/ipc/ipc_message_macros.h index 27fcf83..783108e 100644 --- a/ipc/ipc_message_macros.h +++ b/ipc/ipc_message_macros.h @@ -191,10 +191,12 @@ // Macros for defining structs. May be subsequently redefined. #define IPC_STRUCT_BEGIN(struct_name) \ + IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, IPC::NoParams) +#define IPC_STRUCT_BEGIN_WITH_PARENT(struct_name, parent) \ struct struct_name; \ IPC_STRUCT_TRAITS_BEGIN(struct_name) \ IPC_STRUCT_TRAITS_END() \ - struct IPC_MESSAGE_EXPORT struct_name : IPC::NoParams { \ + struct IPC_MESSAGE_EXPORT struct_name : parent { \ struct_name(); \ ~struct_name(); #define IPC_STRUCT_MEMBER(type, name) type name; -- cgit v1.1