#ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_
#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_
#include <vector>
#include "base/logging.h"
#include "base/strings/string16.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebIDBTypes.h"
namespace content {
class CONTENT_EXPORT IndexedDBKeyPath {
public:
IndexedDBKeyPath();
explicit IndexedDBKeyPath(const base::string16&);
explicit IndexedDBKeyPath(const std::vector<base::string16>&);
~IndexedDBKeyPath();
bool IsNull() const { return type_ == blink::WebIDBKeyPathTypeNull; }
bool operator==(const IndexedDBKeyPath& other) const;
blink::WebIDBKeyPathType type() const { return type_; }
const std::vector<base::string16>& array() const;
const base::string16& string() const;
private:
blink::WebIDBKeyPathType type_;
base::string16 string_;
std::vector<base::string16> array_;
};
}
#endif