#ifndef CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_SIGNED_IN_DEVICES_API_H__
#define CHROME_BROWSER_EXTENSIONS_API_SIGNED_IN_DEVICES_SIGNED_IN_DEVICES_API_H__
#include <string>
#include <vector>
#include "base/memory/scoped_vector.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
namespace browser_sync {
class DeviceInfo;
}
namespace extensions {
class ExtensionPrefs;
}
class Profile;
class ProfileSyncService;
namespace extensions {
ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
const std::string& extension_id,
Profile* profile);
ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
const std::string& extension_id,
ProfileSyncService* pss,
ExtensionPrefs* extension_prefs);
class SignedInDevicesGetFunction : public ChromeSyncExtensionFunction {
protected:
virtual ~SignedInDevicesGetFunction() {}
virtual bool RunImpl() OVERRIDE;
DECLARE_EXTENSION_FUNCTION("signedInDevices.get", SIGNED_IN_DEVICES_GET)
};
}
#endif