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

Side by Side Diff: chrome/browser/sync/glue/history_model_worker.h

Issue 10958031: Move cancelable_request.cc/h to chrome/browser/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_
7 7
8 #include "sync/internal_api/public/engine/model_safe_worker.h" 8 #include "sync/internal_api/public/engine/model_safe_worker.h"
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "chrome/browser/cancelable_request.h" 14 #include "chrome/browser/common/cancelable_request.h"
15 #include "chrome/browser/history/history.h" 15 #include "chrome/browser/history/history.h"
16 16
17 class HistoryService; 17 class HistoryService;
18 18
19 namespace browser_sync { 19 namespace browser_sync {
20 20
21 // A syncer::ModelSafeWorker for history models that accepts requests 21 // A syncer::ModelSafeWorker for history models that accepts requests
22 // from the syncapi that need to be fulfilled on the history thread. 22 // from the syncapi that need to be fulfilled on the history thread.
23 class HistoryModelWorker : public syncer::ModelSafeWorker { 23 class HistoryModelWorker : public syncer::ModelSafeWorker {
24 public: 24 public:
(...skipping 10 matching lines...) Expand all
35 scoped_refptr<HistoryService> history_service_; 35 scoped_refptr<HistoryService> history_service_;
36 // Helper object to make sure we don't leave tasks running on the history 36 // Helper object to make sure we don't leave tasks running on the history
37 // thread. 37 // thread.
38 CancelableRequestConsumerT<int, 0> cancelable_consumer_; 38 CancelableRequestConsumerT<int, 0> cancelable_consumer_;
39 DISALLOW_COPY_AND_ASSIGN(HistoryModelWorker); 39 DISALLOW_COPY_AND_ASSIGN(HistoryModelWorker);
40 }; 40 };
41 41
42 } // namespace browser_sync 42 } // namespace browser_sync
43 43
44 #endif // CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_ 44 #endif // CHROME_BROWSER_SYNC_GLUE_HISTORY_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/base_session_service.h ('k') | chrome/browser/sync/glue/typed_url_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698