| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ | 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ |
| 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ | 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 class WebIDBObjectStore; | 13 class WebIDBObjectStore; |
| 14 class WebIDBTransactionCallbacks; | 14 class WebIDBTransactionCallbacks; |
| 15 class WebString; | 15 class WebString; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction { | 18 class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction { |
| 19 public: | 19 public: |
| 20 explicit RendererWebIDBTransactionImpl(int32 idb_transaction_id); | 20 explicit RendererWebIDBTransactionImpl(int32 idb_transaction_id); |
| 21 virtual ~RendererWebIDBTransactionImpl(); | 21 virtual ~RendererWebIDBTransactionImpl(); |
| 22 | 22 |
| 23 virtual int mode() const; | 23 virtual int mode() const; |
| 24 virtual WebKit::WebIDBObjectStore* objectStore(const WebKit::WebString& name, | 24 virtual WebKit::WebIDBObjectStore* objectStore(const WebKit::WebString& name, |
| 25 WebKit::WebExceptionCode&); | 25 WebKit::WebExceptionCode&); |
| 26 virtual void commit(); |
| 26 virtual void abort(); | 27 virtual void abort(); |
| 27 virtual void didCompleteTaskEvents(); | 28 virtual void didCompleteTaskEvents(); |
| 28 virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*); | 29 virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*); |
| 29 | 30 |
| 30 int id() const { return idb_transaction_id_; } | 31 int id() const { return idb_transaction_id_; } |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 int32 idb_transaction_id_; | 34 int32 idb_transaction_id_; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ | 37 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ |
| OLD | NEW |