| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBTransaction.h" |
| 10 | 10 |
| 11 namespace WebKit { | 11 namespace WebKit { |
| 12 class WebIDBObjectStore; | 12 class WebIDBObjectStore; |
| 13 class WebIDBTransactionCallbacks; | 13 class WebIDBTransactionCallbacks; |
| 14 class WebString; | 14 class WebString; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction { | 19 class RendererWebIDBTransactionImpl : public WebKit::WebIDBTransaction { |
| 20 public: | 20 public: |
| 21 explicit RendererWebIDBTransactionImpl(int32 ipc_transaction_id); | 21 explicit RendererWebIDBTransactionImpl(int32 ipc_transaction_id); |
| 22 virtual ~RendererWebIDBTransactionImpl(); | 22 virtual ~RendererWebIDBTransactionImpl(); |
| 23 | 23 |
| 24 virtual WebKit::WebIDBObjectStore* objectStore(long long object_store_id, | |
| 25 WebKit::WebExceptionCode&); | |
| 26 virtual void commit(); | 24 virtual void commit(); |
| 27 virtual void abort(); | 25 virtual void abort(); |
| 28 virtual void didCompleteTaskEvents(); | 26 virtual void didCompleteTaskEvents(); |
| 29 virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*); | 27 virtual void setCallbacks(WebKit::WebIDBTransactionCallbacks*); |
| 30 | 28 |
| 31 int ipc_id() const { return ipc_transaction_id_; } | 29 int ipc_id() const { return ipc_transaction_id_; } |
| 32 | 30 |
| 33 private: | 31 private: |
| 34 int32 ipc_transaction_id_; | 32 int32 ipc_transaction_id_; |
| 35 }; | 33 }; |
| 36 | 34 |
| 37 } // namespace content | 35 } // namespace content |
| 38 | 36 |
| 39 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ | 37 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBTRANSACTION_IMPL_H_ |
| OLD | NEW |