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