Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 #ifndef CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ | |
| 5 #define CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ | |
| 6 #pragma once | |
| 7 | |
| 8 #include "base/ref_counted.h" | |
| 9 #include "chrome/browser/autofill/personal_data_manager.h" | |
|
lipalani
2010/12/08 21:37:46
name this to indicate that is related to autofill.
| |
| 10 | |
| 11 namespace browser_sync { | |
| 12 | |
| 13 // A task used by this class and the change processor to inform the | |
| 14 // PersonalDataManager living on the UI thread that it needs to refresh. | |
| 15 class DoOptimisticRefreshTask : public Task { | |
| 16 public: | |
| 17 explicit DoOptimisticRefreshTask(PersonalDataManager* pdm); | |
| 18 virtual ~DoOptimisticRefreshTask(); | |
| 19 virtual void Run(); | |
| 20 private: | |
| 21 scoped_refptr<PersonalDataManager> pdm_; | |
| 22 }; | |
| 23 | |
| 24 } // namespace browser_sync | |
| 25 #endif // CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ | |
| 26 | |
| OLD | NEW |