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

Unified Diff: content/public/common/common_param_traits_macros.h

Issue 10577040: Generate param traits even when shared by mutliple message files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « content/public/common/common_param_traits.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/common_param_traits_macros.h
===================================================================
--- content/public/common/common_param_traits_macros.h (revision 0)
+++ content/public/common/common_param_traits_macros.h (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 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.
+
+// Singly or Multiply-included shared traits file depending on circumstances.
+// This allows the use of IPC serialization macros in more than one IPC message
+// file. Hence, provide include guard but no pragma once.
+#ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
+#define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
+
+#include "content/public/common/console_message_level.h"
+#include "content/public/common/page_transition_types.h"
+#include "content/public/common/security_style.h"
+#include "ipc/ipc_message_macros.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
+#include "webkit/glue/resource_type.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+
+IPC_ENUM_TRAITS(content::ConsoleMessageLevel)
+IPC_ENUM_TRAITS(content::PageTransition)
+IPC_ENUM_TRAITS(content::SecurityStyle)
+IPC_ENUM_TRAITS(ResourceType::Type)
+IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
+
+#endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
Property changes on: content/public/common/common_param_traits_macros.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/public/common/common_param_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698