1 // Copyright (c) 2011 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/memory/ref_counted.h" 9 #include "chrome/browser/autofill/personal_data_manager.h" 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 DoOptimisticRefreshForAutofill : public Task { 16 public: 17 explicit DoOptimisticRefreshForAutofill(PersonalDataManager* pdm); 18 virtual ~DoOptimisticRefreshForAutofill(); 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 27