#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_USER_IMAGE_SOURCE_H_
#define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_USER_IMAGE_SOURCE_H_
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "content/public/browser/url_data_source.h"
#include "ui/base/layout.h"
namespace base {
class RefCountedMemory;
}
namespace chromeos {
namespace options {
class UserImageSource : public content::URLDataSource {
public:
UserImageSource();
virtual std::string GetSource() const OVERRIDE;
virtual void StartDataRequest(
const std::string& path,
int render_process_id,
int render_frame_id,
const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
base::RefCountedMemory* GetUserImage(const std::string& email,
bool is_image_animated,
ui::ScaleFactor scale_factor) const;
private:
virtual ~UserImageSource();
DISALLOW_COPY_AND_ASSIGN(UserImageSource);
};
}
}
#endif