pnacl_component_installer.h revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
1// Copyright (c) 2011 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.
4
5#ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
6#define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
7
8class CommandLine;
9class ComponentUpdateService;
10class Version;
11
12namespace base {
13class DictionaryValue;
14}
15
16// Component update registration for Portable Native Client.
17void RegisterPnaclComponent(ComponentUpdateService* cus,
18                            const CommandLine& command_line);
19
20// Returns true if this browser is compatible with the given Pnacl component
21// manifest, with the version specified in the manifest in |version_out|.
22bool CheckPnaclComponentManifest(base::DictionaryValue* manifest,
23                                 Version* version_out);
24
25#endif  // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
26