#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONNECTION_H_
#include "base/memory/ref_counted.h"
#include "content/browser/indexed_db/indexed_db_database.h"
#include "content/browser/indexed_db/indexed_db_database_callbacks.h"
namespace content {
class IndexedDBCallbacks;
class IndexedDBDatabaseError;
class CONTENT_EXPORT IndexedDBConnection {
public:
IndexedDBConnection(scoped_refptr<IndexedDBDatabase> db,
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks);
virtual ~IndexedDBConnection();
virtual void ForceClose();
virtual void Close();
virtual bool IsConnected();
IndexedDBDatabase* database() { return database_; }
IndexedDBDatabaseCallbacks* callbacks() { return callbacks_; }
private:
scoped_refptr<IndexedDBDatabase> database_;
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks_;
};
}
#endif