| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 return make_scoped_refptr(new IndexedDBDatabaseCallbacksWrapper(callbacks)); | 22 return make_scoped_refptr(new IndexedDBDatabaseCallbacksWrapper(callbacks)); |
| 23 } | 23 } |
| 24 | 24 |
| 25 virtual void OnForcedClose(); | 25 virtual void OnForcedClose(); |
| 26 virtual void OnVersionChange(int64 old_version, int64 new_version); | 26 virtual void OnVersionChange(int64 old_version, int64 new_version); |
| 27 | 27 |
| 28 virtual void OnAbort(int64 transaction_id, | 28 virtual void OnAbort(int64 transaction_id, |
| 29 scoped_refptr<IndexedDBDatabaseError> error); | 29 scoped_refptr<IndexedDBDatabaseError> error); |
| 30 virtual void OnComplete(int64 transaction_id); | 30 virtual void OnComplete(int64 transaction_id); |
| 31 | 31 |
| 32 private: | 32 protected: |
| 33 explicit IndexedDBDatabaseCallbacksWrapper( | 33 explicit IndexedDBDatabaseCallbacksWrapper( |
| 34 WebKit::WebIDBDatabaseCallbacks* callbacks); | 34 WebKit::WebIDBDatabaseCallbacks* callbacks); |
| 35 virtual ~IndexedDBDatabaseCallbacksWrapper(); | 35 virtual ~IndexedDBDatabaseCallbacksWrapper(); |
| 36 |
| 37 private: |
| 36 friend class base::RefCounted<IndexedDBDatabaseCallbacksWrapper>; | 38 friend class base::RefCounted<IndexedDBDatabaseCallbacksWrapper>; |
| 37 | 39 |
| 38 scoped_ptr<WebKit::WebIDBDatabaseCallbacks> callbacks_; | 40 scoped_ptr<WebKit::WebIDBDatabaseCallbacks> callbacks_; |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 } // namespace content | 43 } // namespace content |
| 42 | 44 |
| 43 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ | 45 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_CALLBACKS_WRAPPER_H_ |
| OLD | NEW |