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

Unified Diff: components/sync/engine/browser_thread_model_worker.h

Issue 2942773002: Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker (Closed)
Patch Set: Updated more comments to reflect thread -> sequence migration. Created 3 years, 6 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
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/engine/browser_thread_model_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine/browser_thread_model_worker.h
diff --git a/components/sync/engine/browser_thread_model_worker.h b/components/sync/engine/browser_thread_model_worker.h
deleted file mode 100644
index 32e63b287d05803e28d21e0d1ed5f3b206277538..0000000000000000000000000000000000000000
--- a/components/sync/engine/browser_thread_model_worker.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_ENGINE_BROWSER_THREAD_MODEL_WORKER_H_
-#define COMPONENTS_SYNC_ENGINE_BROWSER_THREAD_MODEL_WORKER_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/single_thread_task_runner.h"
-#include "components/sync/engine/model_safe_worker.h"
-
-namespace syncer {
-
-// A ModelSafeWorker for models that accept requests from the
-// syncapi that need to be fulfilled on a browser thread, for example
-// autofill on the DB thread.
-// TODO(sync): Try to generalize other ModelWorkers (e.g. history, etc).
-class BrowserThreadModelWorker : public ModelSafeWorker {
- public:
- BrowserThreadModelWorker(
- const scoped_refptr<base::SingleThreadTaskRunner>& runner,
- ModelSafeGroup group);
-
- // ModelSafeWorker implementation.
- ModelSafeGroup GetModelSafeGroup() override;
- bool IsOnModelThread() override;
-
- private:
- ~BrowserThreadModelWorker() override;
-
- void ScheduleWork(base::OnceClosure work) override;
-
- scoped_refptr<base::SingleThreadTaskRunner> runner_;
- ModelSafeGroup group_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserThreadModelWorker);
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_ENGINE_BROWSER_THREAD_MODEL_WORKER_H_
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/engine/browser_thread_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698