Index: third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.h |
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.h b/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.h |
index 34046a54b56987c32db96aee235f4e38ee3ff999..609a380e546626f60096e0a2b99f2daa5e6a7f2e 100644 |
--- a/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.h |
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/lib/bindings_serialization.h |
@@ -14,8 +14,6 @@ |
namespace mojo { |
namespace internal { |
-class BoundsChecker; |
- |
// Please note that this is a different value than |mojo::kInvalidHandleValue|, |
// which is the "decoded" invalid handle. |
const MojoHandle kEncodedInvalidHandleValue = static_cast<MojoHandle>(-1); |
@@ -43,10 +41,6 @@ inline void DecodePointer(const uint64_t* offset, T** ptr) { |
*ptr = reinterpret_cast<T*>(const_cast<void*>(DecodePointerRaw(offset))); |
} |
-// Checks whether decoding the pointer will overflow and produce a pointer |
-// smaller than |offset|. |
-bool ValidateEncodedPointer(const uint64_t* offset); |
- |
// Handles are encoded as indices into a vector of handles. These functions |
// manipulate the value of |handle|, mapping it to and from an index. |
@@ -74,16 +68,6 @@ inline void Decode(T* obj, std::vector<Handle>* handles) { |
obj->ptr->DecodePointersAndHandles(handles); |
} |
-// Validates that |data| contains a valid struct header, in terms of alignment |
-// and size (i.e., the |num_bytes| field of the header is sufficient for storing |
-// the header itself). Besides, it checks that the memory range |
-// [data, data + num_bytes) is not marked as occupied by other objects in |
-// |bounds_checker|. On success, the memory range is marked as occupied. |
-// Note: Does not verify |version| or that |num_bytes| is correct for the |
-// claimed version. |
-bool ValidateStructHeaderAndClaimMemory(const void* data, |
- BoundsChecker* bounds_checker); |
- |
template <typename T> |
inline void InterfacePointerToData(InterfacePtr<T> input, |
Interface_Data* output) { |