#ifndef CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_
#define CONTENT_CHILD_INDEXED_DB_PROXY_WEBIDBFACTORY_IMPL_H_
#include "base/memory/ref_counted.h"
#include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h"
#include "third_party/WebKit/public/platform/WebIDBFactory.h"
#include "third_party/WebKit/public/platform/WebVector.h"
namespace blink {
class WebString;
}
namespace content {
class ThreadSafeSender;
class WebIDBFactoryImpl : public blink::WebIDBFactory {
public:
explicit WebIDBFactoryImpl(ThreadSafeSender* thread_safe_sender);
virtual ~WebIDBFactoryImpl();
virtual void getDatabaseNames(blink::WebIDBCallbacks* callbacks,
const blink::WebString& database_identifier);
virtual void open(const blink::WebString& name,
long long version,
long long transaction_id,
blink::WebIDBCallbacks* callbacks,
blink::WebIDBDatabaseCallbacks* databaseCallbacks,
const blink::WebString& database_identifier);
virtual void deleteDatabase(const blink::WebString& name,
blink::WebIDBCallbacks* callbacks,
const blink::WebString& database_identifier);
private:
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
};
}
#endif