#ifndef CHROME_COMMON_SPELLCHECK_MARKER_H_
#define CHROME_COMMON_SPELLCHECK_MARKER_H_
class SpellCheckMarker {
public:
class IsValidPredicate {
public:
typedef SpellCheckMarker argument_type;
explicit IsValidPredicate(size_t text_length) : text_length_(text_length) {}
bool operator()(const SpellCheckMarker& marker) const {
return marker.offset < text_length_;
}
private:
size_t text_length_;
};
SpellCheckMarker() : hash(-1), offset(-1) {}
SpellCheckMarker(uint32 hash, size_t offset) : hash(hash), offset(offset) {}
uint32 hash;
size_t offset;
};
#endif