Home | History | Annotate | Download | only in crx_file

Lines Matching defs:Header

14 // CRX files have a header that includes a magic key, version number, and
16 // the header is valid or not.
23 // This header is the first data at the beginning of an extension. Its
26 struct Header {
44 // Construct a new CRX file header object with bytes of a header
47 static scoped_ptr<CrxFile> Parse(const Header& header, Error* error);
49 // Construct a new header for the given key and signature sizes.
53 // Use this constructor and then .header() to obtain the Header
59 // Returns the header structure for writing out to a CRX file.
60 const Header& header() const { return header_; }
62 // Checks a valid |header| to determine whether or not the CRX represents a
64 static bool HeaderIsDelta(const Header& header);
67 Header header_;
70 explicit CrxFile(const Header& header);
72 // Checks the |header| for validity and returns true if the values are valid.
74 static bool HeaderIsValid(const Header& header, Error* error);