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

Unified Diff: mojo/public/bindings/generators/cpp_templates/module_internal.h-template

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 years, 1 month 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: mojo/public/bindings/generators/cpp_templates/module_internal.h-template
diff --git a/mojo/public/bindings/generators/cpp_templates/interface_serialization.cc-template b/mojo/public/bindings/generators/cpp_templates/module_internal.h-template
similarity index 66%
rename from mojo/public/bindings/generators/cpp_templates/interface_serialization.cc-template
rename to mojo/public/bindings/generators/cpp_templates/module_internal.h-template
index cae063a17c94d2da90ee1aadbb7b255ecbea64c8..2d7ccff70f70747c81bf1cb59db259bcea2426b4 100644
--- a/mojo/public/bindings/generators/cpp_templates/interface_serialization.cc-template
+++ b/mojo/public/bindings/generators/cpp_templates/module_internal.h-template
@@ -2,20 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "$HEADER"
-
-namespace $NAMESPACE {
-namespace internal {
-
-$IMPLEMENTATIONS
+#ifndef $HEADER_GUARD
+#define $HEADER_GUARD
-} // namespace internal
-} // namespace sample
+#include "mojo/public/bindings/lib/bindings_serialization.h"
+#include "$HEADER"
namespace mojo {
namespace internal {
-$SERIALIZATIONS
+$TRAITS
} // namespace internal
} // namespace mojo
+
+#endif // $HEADER_GUARD

Powered by Google App Engine
This is Rietveld 408576698