Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / update_client / task.h
blob52af7521aefc34c37de69749adaaaf0ed2caaee7
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 {
14 class Task;
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
19 // together.
20 class Task {
21 public:
22 virtual ~Task() {}
24 virtual void Run() = 0;
27 } // namespace update_client
29 #endif // COMPONENTS_UPDATE_CLIENT_TASK_H_