We consider a new class of variational-hemivariational inequalities which arise in the study of quasistatic models of contact. The novelty lies in the special structure of these inequalities, since each inequality of the class involve unilateral constraints, a history-dependent operator and two nondifferentiable functionals, of which at least one is convex. We prove an existence and uniqueness result of the solution. The proof is based on arguments on elliptic variational-hemivariational inequalities obtained in our previous work [23], combined with a fixed point result obtained in [30]. Then, we prove a convergence result which shows the continuous dependence of the solution with respect to the data. Finally, we present a quasistatic frictionless problem for viscoelastic materials in which the contact is modeled with normal compliance and finite penetration and the elasticity operator is associated to a history-dependent Von Mises convex. We prove that the variational formulation of the problem cast in the abstract setting of history-dependent quasivariational inequalities, with a convenient choice of spaces and operators. Then we apply our general results in order to prove the unique weak solvability of the contact problem and its continuous dependence on the data.Mathematics Subject Classification. 47J20, 47J22, 74M15, 74G25.