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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/lib/message_internal.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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: third_party/mojo/src/mojo/public/cpp/bindings/lib/message_internal.h
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_internal.h b/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_internal.h
deleted file mode 100644
index 744a2bb8a9a79df111682e79b80da47f42f1cd00..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_internal.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_
-
-#include "third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_internal.h"
-
-namespace mojo {
-namespace internal {
-
-#pragma pack(push, 1)
-
-enum { kMessageExpectsResponse = 1 << 0, kMessageIsResponse = 1 << 1 };
-
-struct MessageHeader : internal::StructHeader {
- // Interface ID for identifying multiple interfaces running on the same
- // message pipe.
- uint32_t interface_id;
- // Message name, which is scoped to the interface that the message belongs to.
- uint32_t name;
- // 0 or either of the enum values defined above.
- uint32_t flags;
- // Unused padding to make the struct size a multiple of 8 bytes.
- uint32_t padding;
-};
-static_assert(sizeof(MessageHeader) == 24, "Bad sizeof(MessageHeader)");
-
-struct MessageHeaderWithRequestID : MessageHeader {
- // Only used if either kMessageExpectsResponse or kMessageIsResponse is set in
- // order to match responses with corresponding requests.
- uint64_t request_id;
-};
-static_assert(sizeof(MessageHeaderWithRequestID) == 32,
- "Bad sizeof(MessageHeaderWithRequestID)");
-
-struct MessageData {
- MessageHeader header;
-};
-
-static_assert(sizeof(MessageData) == sizeof(MessageHeader),
- "Bad sizeof(MessageData)");
-
-#pragma pack(pop)
-
-} // namespace internal
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_LIB_MESSAGE_INTERNAL_H_

Powered by Google App Engine
This is Rietveld 408576698