#ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
#include "base/basictypes.h"
#include "content/common/content_export.h"
#include "content/common/indexed_db/indexed_db_key.h"
namespace content {
class CONTENT_EXPORT IndexedDBKeyRange {
public:
IndexedDBKeyRange();
explicit IndexedDBKeyRange(const IndexedDBKey& onlyKey);
IndexedDBKeyRange(const IndexedDBKey& lower,
const IndexedDBKey& upper,
bool lower_open,
bool upper_open);
~IndexedDBKeyRange();
const IndexedDBKey& lower() const { return lower_; }
const IndexedDBKey& upper() const { return upper_; }
bool lowerOpen() const { return lower_open_; }
bool upperOpen() const { return upper_open_; }
bool IsOnlyKey() const;
private:
IndexedDBKey lower_;
IndexedDBKey upper_;
bool lower_open_;
bool upper_open_;
};
}
#endif