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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PASSWORD_MODEL_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/engine/model_safe_worker.h" 9 #include "chrome/browser/sync/engine/model_safe_worker.h"
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 // A ModelSafeWorker for password models that accepts requests 23 // A ModelSafeWorker for password models that accepts requests
24 // from the syncapi that need to be fulfilled on the password thread, 24 // from the syncapi that need to be fulfilled on the password thread,
25 // which is the DB thread on Linux and Windows. 25 // which is the DB thread on Linux and Windows.
26 class PasswordModelWorker : public browser_sync::ModelSafeWorker { 26 class PasswordModelWorker : public browser_sync::ModelSafeWorker {
27 public: 27 public:
28 explicit PasswordModelWorker(PasswordStore* password_store); 28 explicit PasswordModelWorker(PasswordStore* password_store);
29 virtual ~PasswordModelWorker(); 29 virtual ~PasswordModelWorker();
30 30
31 // ModelSafeWorker implementation. Called on syncapi SyncerThread. 31 // ModelSafeWorker implementation. Called on syncapi SyncerThread.
32 void DoWorkAndWaitUntilDone(Callback0::Type* work); 32 virtual void DoWorkAndWaitUntilDone(Callback0::Type* work);
33 virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_PASSWORD; } 33 virtual ModelSafeGroup GetModelSafeGroup() { return GROUP_PASSWORD; }
34 virtual bool CurrentThreadIsWorkThread(); 34 virtual bool CurrentThreadIsWorkThread();
35 35
36 private: 36 private:
37 void CallDoWorkAndSignalTask(Callback0::Type* work, 37 void CallDoWorkAndSignalTask(Callback0::Type* work,
38 base::WaitableEvent* done); 38 base::WaitableEvent* done);
39 39
40 scoped_refptr<PasswordStore> password_store_; 40 scoped_refptr<PasswordStore> password_store_;
41 DISALLOW_COPY_AND_ASSIGN(PasswordModelWorker); 41 DISALLOW_COPY_AND_ASSIGN(PasswordModelWorker);
42 }; 42 };
43 43
44 } // namespace browser_sync 44 } // namespace browser_sync
45 45
46 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_ 46 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/history_model_worker.h ('k') | chrome/browser/task_manager/task_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698