1 // Copyright 2015 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 COMPONENTS_UPDATE_CLIENT_TASK_H_
6 #define COMPONENTS_UPDATE_CLIENT_TASK_H_
8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/update_client/update_client.h"
12 namespace update_client
{
16 // Defines an abstraction for a unit of work done by the update client.
17 // Each invocation of the update client API results in a task being created and
18 // run. In most cases, a task corresponds to a set of CRXs, which are updated
24 virtual void Run() = 0;
27 } // namespace update_client
29 #endif // COMPONENTS_UPDATE_CLIENT_TASK_H_