| 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_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "content/browser/indexed_db/indexed_db.h" | 14 #include "content/browser/indexed_db/indexed_db.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 "content/common/indexed_db/indexed_db_key_range.h" | 18 #include "content/common/indexed_db/indexed_db_key_range.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 | 21 |
| 22 class IndexedDBCallbacksWrapper; | 22 class IndexedDBCallbacksWrapper; |
| 23 class IndexedDBDatabaseCallbacksWrapper; | 23 class IndexedDBDatabaseCallbacksWrapper; |
| 24 struct IndexedDBDatabaseMetadata; | |
| 25 | 24 |
| 26 // This is implemented by IndexedDBDatabaseImpl and optionally others (in order | 25 // This is implemented by IndexedDBDatabaseImpl and optionally others (in order |
| 27 // to proxy calls across process barriers). All calls to these classes should be | 26 // to proxy calls across process barriers). All calls to these classes should be |
| 28 // non-blocking and trigger work on a background thread if necessary. | 27 // non-blocking and trigger work on a background thread if necessary. |
| 29 class IndexedDBDatabase : public base::RefCounted<IndexedDBDatabase> { | 28 class IndexedDBDatabase : public base::RefCounted<IndexedDBDatabase> { |
| 30 public: | 29 public: |
| 31 virtual void CreateObjectStore(int64 transaction_id, | 30 virtual void CreateObjectStore(int64 transaction_id, |
| 32 int64 object_store_id, | 31 int64 object_store_id, |
| 33 const string16& name, | 32 const string16& name, |
| 34 const IndexedDBKeyPath& key_path, | 33 const IndexedDBKeyPath& key_path, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; | 121 scoped_refptr<IndexedDBCallbacksWrapper> callbacks) = 0; |
| 123 | 122 |
| 124 protected: | 123 protected: |
| 125 virtual ~IndexedDBDatabase() {} | 124 virtual ~IndexedDBDatabase() {} |
| 126 friend class base::RefCounted<IndexedDBDatabase>; | 125 friend class base::RefCounted<IndexedDBDatabase>; |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 } // namespace content | 128 } // namespace content |
| 130 | 129 |
| 131 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ | 130 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_H_ |
| OLD | NEW |