Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 #include "base/string16.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class IndexedDBCallbacksWrapper; | |
| 14 class IndexedDBDatabase; | |
| 15 class IndexedDBDatabaseCallbacksWrapper; | |
| 16 | |
| 17 typedef int ExceptionCode; | |
|
jamesr
2013/05/22 18:59:44
This seems like at least the third time I've seen
jsbell
2013/05/22 22:21:14
Removed. Also removed some class forward declarati
| |
| 18 | |
| 19 class IndexedDBFactory : public base::RefCounted<IndexedDBFactory> { | |
| 20 public: | |
| 21 static scoped_refptr<IndexedDBFactory> Create(); | |
| 22 | |
| 23 virtual void GetDatabaseNames(scoped_refptr<IndexedDBCallbacksWrapper>, | |
| 24 const string16& database_identifier, | |
| 25 const string16& data_dir) = 0; | |
| 26 virtual void Open(const string16& name, | |
| 27 int64_t version, | |
| 28 int64_t transaction_id, | |
| 29 scoped_refptr<IndexedDBCallbacksWrapper>, | |
| 30 scoped_refptr<IndexedDBDatabaseCallbacksWrapper>, | |
| 31 const string16& database_identifier, | |
| 32 const string16& data_dir) = 0; | |
| 33 virtual void DeleteDatabase(const string16& name, | |
| 34 scoped_refptr<IndexedDBCallbacksWrapper>, | |
| 35 const string16& database_identifier, | |
| 36 const string16& data_dir) = 0; | |
| 37 | |
| 38 protected: | |
| 39 virtual ~IndexedDBFactory() {} | |
| 40 friend class base::RefCounted<IndexedDBFactory>; | |
| 41 }; | |
| 42 | |
| 43 } // namespace content | |
| 44 | |
| 45 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | |
| OLD | NEW |