Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: chrome/browser/sync/glue/history_model_worker.h

Issue 14046031: Worker changes to prepare for lock-free shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/history_model_worker.h
diff --git a/chrome/browser/sync/glue/history_model_worker.h b/chrome/browser/sync/glue/history_model_worker.h
index 6eb42c05b1517db6a45eb4806b1e8c2adcb220d4..93112ab2035393cc9c0027675d990477db427bdb 100644
--- a/chrome/browser/sync/glue/history_model_worker.h
+++ b/chrome/browser/sync/glue/history_model_worker.h
@@ -13,6 +13,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/common/cancelable_request.h"
+#include "chrome/browser/history/history_db_task.h"
#include "chrome/browser/history/history_service.h"
class HistoryService;
@@ -24,13 +25,17 @@ namespace browser_sync {
class HistoryModelWorker : public syncer::ModelSafeWorker {
public:
explicit HistoryModelWorker(
- const base::WeakPtr<HistoryService>& history_service);
+ const base::WeakPtr<HistoryService>& history_service,
+ syncer::WorkerLoopDestructionObserver* observer);
// syncer::ModelSafeWorker implementation. Called on syncapi SyncerThread.
- virtual syncer::SyncerError DoWorkAndWaitUntilDone(
- const syncer::WorkCallback& work) OVERRIDE;
+ virtual void RegisterForLoopDestruction() OVERRIDE;
virtual syncer::ModelSafeGroup GetModelSafeGroup() OVERRIDE;
+ protected:
+ virtual syncer::SyncerError DoWorkAndWaitUntilDoneImpl(
+ const syncer::WorkCallback& work) OVERRIDE;
+
private:
virtual ~HistoryModelWorker();
« no previous file with comments | « chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc ('k') | chrome/browser/sync/glue/history_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698