12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This file contains helper functions to read the Chrome EULA.
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#ifndef CHROME_INSTALLER_UTIL_EULA_UTIL_H_
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#define CHROME_INSTALLER_UTIL_EULA_UTIL_H_
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)namespace installer {
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)enum EULAAcceptanceResponse{
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  QUERY_EULA_FAIL = -1,
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  QUERY_EULA_NOT_ACCEPTED = 0,
152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  QUERY_EULA_ACCEPTED = 1,
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)};
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Performs a comprehensive test on EULA acceptance in Chrome.
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This is mostly intended for system-level Chrome, although it also supports
202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// user-level Chrome (should return QUERY_EULA_ACCEPTED).
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)EULAAcceptanceResponse IsEULAAccepted(bool system_level);
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)}  // namespace installer
242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif  // CHROME_INSTALLER_UTIL_EULA_UTIL_H_
26