Chromium Code Reviews| Index: chrome/browser/sync/glue/do_optimistic_refresh_task.h |
| diff --git a/chrome/browser/sync/glue/do_optimistic_refresh_task.h b/chrome/browser/sync/glue/do_optimistic_refresh_task.h |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..800344c13fc655d2889b4794be911030591a14f2 |
| --- /dev/null |
| +++ b/chrome/browser/sync/glue/do_optimistic_refresh_task.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright (c) 2010 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 CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ |
| +#define CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ |
| +#pragma once |
| + |
| +#include "base/ref_counted.h" |
| +#include "chrome/browser/autofill/personal_data_manager.h" |
|
lipalani
2010/12/08 21:37:46
name this to indicate that is related to autofill.
|
| + |
| +namespace browser_sync { |
| + |
| +// A task used by this class and the change processor to inform the |
| +// PersonalDataManager living on the UI thread that it needs to refresh. |
| +class DoOptimisticRefreshTask : public Task { |
| + public: |
| + explicit DoOptimisticRefreshTask(PersonalDataManager* pdm); |
| + virtual ~DoOptimisticRefreshTask(); |
| + virtual void Run(); |
| + private: |
| + scoped_refptr<PersonalDataManager> pdm_; |
| +}; |
| + |
| +} // namespace browser_sync |
| +#endif // CHROME_BROWSER_SYNC_GLUE_DO_OPTIMISTIC_REFRESH_TASK_H_ |
| + |