1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_IDS_H_
6 #define CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_IDS_H_
11 #include "base/strings/string_piece.h"
13 typedef std::map
<std::string
, size_t> ModuleIDs
;
15 // Parses a list of additional modules to verify. The data format is a series of
16 // lines. Each line starts with a decimal ID, then a module name digest,
17 // separated by a space. Lines are terminated by \r and/or \n. Invalid lines are
20 // The result is a map of module name digests to module IDs.
21 void ParseAdditionalModuleIDs(
22 const base::StringPiece
& raw_data
,
23 ModuleIDs
* module_ids
);
25 // Loads standard module IDs and additional module IDs from a resource.
26 void LoadModuleIDs(ModuleIDs
* module_ids
);
28 #endif // CHROME_BROWSER_INSTALL_VERIFICATION_WIN_MODULE_IDS_H_