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

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

Issue 10071033: RefCounted types should not have public destructors, chrome/browser/ part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation ordering fixes as well Created 8 years, 8 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_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 "sync/engine/model_safe_worker.h" 9 #include "sync/engine/model_safe_worker.h"
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 namespace browser_sync { 22 namespace browser_sync {
23 23
24 // A ModelSafeWorker for password models that accepts requests 24 // A ModelSafeWorker for password models that accepts requests
25 // from the syncapi that need to be fulfilled on the password thread, 25 // from the syncapi that need to be fulfilled on the password thread,
26 // which is the DB thread on Linux and Windows. 26 // which is the DB thread on Linux and Windows.
27 class PasswordModelWorker : public browser_sync::ModelSafeWorker { 27 class PasswordModelWorker : public browser_sync::ModelSafeWorker {
28 public: 28 public:
29 explicit PasswordModelWorker( 29 explicit PasswordModelWorker(
30 const scoped_refptr<PasswordStore>& password_store); 30 const scoped_refptr<PasswordStore>& password_store);
31 virtual ~PasswordModelWorker();
32 31
33 // ModelSafeWorker implementation. Called on syncapi SyncerThread. 32 // ModelSafeWorker implementation. Called on syncapi SyncerThread.
34 virtual SyncerError DoWorkAndWaitUntilDone( 33 virtual SyncerError DoWorkAndWaitUntilDone(
35 const WorkCallback& work) OVERRIDE; 34 const WorkCallback& work) OVERRIDE;
36 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE; 35 virtual ModelSafeGroup GetModelSafeGroup() OVERRIDE;
37 36
38 private: 37 private:
38 virtual ~PasswordModelWorker();
39
39 void CallDoWorkAndSignalTask( 40 void CallDoWorkAndSignalTask(
40 const WorkCallback& work, 41 const WorkCallback& work,
41 base::WaitableEvent* done, 42 base::WaitableEvent* done,
42 SyncerError* error); 43 SyncerError* error);
43 44
44 scoped_refptr<PasswordStore> password_store_; 45 scoped_refptr<PasswordStore> password_store_;
45 DISALLOW_COPY_AND_ASSIGN(PasswordModelWorker); 46 DISALLOW_COPY_AND_ASSIGN(PasswordModelWorker);
46 }; 47 };
47 48
48 } // namespace browser_sync 49 } // namespace browser_sync
49 50
50 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_ 51 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_WORKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_data_type_controller.cc ('k') | chrome/browser/sync/glue/password_model_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698