// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DB_TASK_H_ #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DB_TASK_H_ namespace history { class HistoryBackend; class HistoryDatabase; // HistoryDBTask can be used to process arbitrary work on the history backend // thread. HistoryDBTask is scheduled using HistoryService::ScheduleDBTask. // When HistoryBackend processes the task it invokes RunOnDBThread. Once the // task completes and has not been canceled, DoneRunOnMainThread is invoked back // on the main thread, after which this object is destroyed, also on the // main thread. class HistoryDBTask { … }; } // namespace history #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DB_TASK_H_