diff options
Diffstat (limited to 'content/renderer/indexed_db/renderer_webidbtransaction_impl.h')
-rw-r--r-- | content/renderer/indexed_db/renderer_webidbtransaction_impl.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/renderer/indexed_db/renderer_webidbtransaction_impl.h b/content/renderer/indexed_db/renderer_webidbtransaction_impl.h new file mode 100644 index 0000000..164cdad --- /dev/null +++ b/content/renderer/indexed_db/renderer_webidbtransaction_impl.h @@ -0,0 +1,36 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBTRANSACTION_IMPL_H_ +#define CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBTRANSACTION_IMPL_H_ +#pragma once + +#include "base/basictypes.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" + +namespace WebKit { +class WebIDBObjectStore; +class WebIDBTransactionCallbacks; +class WebString; +} + +class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction { + public: + explicit RendererWebIDBTransactionImpl(int32 idb_transaction_id); + virtual ~RendererWebIDBTransactionImpl(); + + virtual int mode() const; + virtual WebKit::WebIDBObjectStore* objectStore(const WebKit::WebString& name, + WebKit::WebExceptionCode&); + virtual void abort(); + virtual void didCompleteTaskEvents(); + virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*); + + int id() const { return idb_transaction_id_; } + + private: + int32 idb_transaction_id_; +}; + +#endif // CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBTRANSACTION_IMPL_H_ |