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

Unified Diff: mojo/public/cpp/bindings/tests/pickled_struct_blink.h

Issue 1655333002: Add message sizing to basic IPC traits and struct macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@with-pickles
Patch Set: include ArrayHeader in size (oops!) and ensure the buffer doesn't relocate Created 4 years, 10 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
Index: mojo/public/cpp/bindings/tests/pickled_struct_blink.h
diff --git a/mojo/public/cpp/bindings/tests/pickled_struct_blink.h b/mojo/public/cpp/bindings/tests/pickled_struct_blink.h
index c4406b493d75c1f3ca4c8897c6431f6eb248e61a..ce5b3644d334bef1f0bea017e2a8393ebee91ea0 100644
--- a/mojo/public/cpp/bindings/tests/pickled_struct_blink.h
+++ b/mojo/public/cpp/bindings/tests/pickled_struct_blink.h
@@ -16,6 +16,7 @@
namespace base {
class Pickle;
class PickleIterator;
+class PickleSizer;
}
namespace mojo {
@@ -61,7 +62,7 @@ template <>
struct ParamTraits<mojo::test::PickledStructBlink> {
using param_type = mojo::test::PickledStructBlink;
- static size_t GetSize(const param_type& p) { return 8; }
+ static void GetSize(base::PickleSizer* sizer, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
« no previous file with comments | « mojo/public/cpp/bindings/lib/native_serialization.h ('k') | mojo/public/cpp/bindings/tests/pickled_struct_blink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698