| Index: net/base/hash_value.h
|
| diff --git a/net/base/hash_value.h b/net/base/hash_value.h
|
| index a0e1d84d400f5df169ae210095ff4aedcf39b0b7..c6a10c66e5fcdf6af1fdd6330380b7d0949f6f50 100644
|
| --- a/net/base/hash_value.h
|
| +++ b/net/base/hash_value.h
|
| @@ -12,6 +12,7 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include "base/pickle.h"
|
| #include "base/strings/string_piece.h"
|
| #include "build/build_config.h"
|
| #include "net/base/net_export.h"
|
| @@ -21,6 +22,15 @@ namespace net {
|
| struct NET_EXPORT SHA1HashValue {
|
| bool Equals(const SHA1HashValue& other) const;
|
|
|
| + // Appends a representation of this object to the given pickle.
|
| + bool Persist(base::Pickle* pickle) const;
|
| +
|
| + // Create an SHA1HashValue from the representation stored in the given pickle.
|
| + // The data for this object is found relative to the given pickle_iter, which
|
| + // should be passed to the pickle's various Read* methods.
|
| + // Returns false on failure.
|
| + static bool CreateFromPickle(base::PickleIterator* iter, SHA1HashValue* hash);
|
| +
|
| unsigned char data[20];
|
| };
|
|
|
|
|