#ifndef CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_PREFERENCES_PRIVATE_PREFERENCES_PRIVATE_API_H_
#include "base/basictypes.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "extensions/browser/extension_function.h"
namespace extensions {
class PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction
: public ChromeAsyncExtensionFunction, public ProfileSyncServiceObserver {
public:
DECLARE_EXTENSION_FUNCTION(
"preferencesPrivate.getSyncCategoriesWithoutPassphrase",
PREFERENCESPRIVATE_GETSYNCCATEGORIESWITHOUTPASSPHRASE)
PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction();
protected:
virtual ~PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction();
private:
virtual void OnStateChanged() OVERRIDE;
virtual bool RunImpl() OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(
PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction);
};
}
#endif