| 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_CALLBACKS_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "content/browser/indexed_db/indexed_db_database_error.h" | 15 #include "content/browser/indexed_db/indexed_db_database_error.h" |
| 16 #include "content/common/indexed_db/indexed_db_key.h" | 16 #include "content/common/indexed_db/indexed_db_key.h" |
| 17 #include "content/common/indexed_db/indexed_db_key_path.h" | 17 #include "content/common/indexed_db/indexed_db_key_path.h" |
| 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" | 18 #include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class IndexedDBCallbacksBase; | 21 class IndexedDBCallbacksBase; |
| 22 class IndexedDBDatabaseCallbacksWrapper; | 22 class IndexedDBDatabaseCallbacksWrapper; |
| 23 class IndexedDBCursor; | 23 class IndexedDBCursor; |
| 24 class IndexedDBDatabase; | 24 class IndexedDBDatabase; |
| 25 class WebIDBCursorImpl; | |
| 26 class WebIDBDatabaseImpl; | 25 class WebIDBDatabaseImpl; |
| 27 struct IndexedDBDatabaseMetadata; | 26 struct IndexedDBDatabaseMetadata; |
| 28 | 27 |
| 29 class CONTENT_EXPORT IndexedDBCallbacksWrapper | 28 class CONTENT_EXPORT IndexedDBCallbacksWrapper |
| 30 : public base::RefCounted<IndexedDBCallbacksWrapper> { | 29 : public base::RefCounted<IndexedDBCallbacksWrapper> { |
| 31 public: | 30 public: |
| 32 static scoped_refptr<IndexedDBCallbacksWrapper> Create( | 31 static scoped_refptr<IndexedDBCallbacksWrapper> Create( |
| 33 IndexedDBCallbacksBase* callbacks) { | 32 IndexedDBCallbacksBase* callbacks) { |
| 34 return make_scoped_refptr(new IndexedDBCallbacksWrapper(callbacks)); | 33 return make_scoped_refptr(new IndexedDBCallbacksWrapper(callbacks)); |
| 35 } | 34 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 scoped_ptr<WebIDBDatabaseImpl> web_database_impl_; | 90 scoped_ptr<WebIDBDatabaseImpl> web_database_impl_; |
| 92 scoped_ptr<IndexedDBCallbacksBase> callbacks_; | 91 scoped_ptr<IndexedDBCallbacksBase> callbacks_; |
| 93 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; | 92 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_; |
| 94 bool did_complete_; | 93 bool did_complete_; |
| 95 bool did_create_proxy_; | 94 bool did_create_proxy_; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 } // namespace content | 97 } // namespace content |
| 99 | 98 |
| 100 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ | 99 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_WRAPPER_H_ |
| OLD | NEW |