9 #include <unordered_map>
11 #include "flutter/fml/hash_combine.h"
12 #include "flutter/fml/macros.h"
13 #include "flutter/fml/mapping.h"
20 explicit BlobLibrary(std::shared_ptr<fml::Mapping> payload);
31 std::string name)
const;
35 const std::string& name,
36 const std::shared_ptr<fml::Mapping>& mapping)>&)
46 return fml::HashCombine(
47 static_cast<std::underlying_type_t<decltype(key.type)
>>(key.type),
53 bool operator()(
const BlobKey& lhs,
const BlobKey& rhs)
const {
54 return lhs.type == rhs.type && lhs.name == rhs.name;
59 using Blobs = std::unordered_map<BlobKey,
60 std::shared_ptr<fml::Mapping>,
64 std::shared_ptr<fml::Mapping> payload_;
66 bool is_valid_ =
false;