| 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/basictypes.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "base/string16.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class IndexedDBCallbacksWrapper; | |
| 15 class IndexedDBDatabase; | |
| 16 class IndexedDBDatabaseCallbacksWrapper; | |
| 17 | |
| 18 class IndexedDBFactory : public base::RefCounted<IndexedDBFactory> { | |
| 19 public: | |
| 20 static scoped_refptr<IndexedDBFactory> Create(); | |
| 21 | |
| 22 virtual void GetDatabaseNames( | |
| 23 scoped_refptr<IndexedDBCallbacksWrapper> callbacks, | |
| 24 const string16& database_identifier, | |
| 25 const string16& data_dir) = 0; | |
| 26 virtual void Open( | |
| 27 const string16& name, | |
| 28 int64 version, | |
| 29 int64 transaction_id, | |
| 30 scoped_refptr<IndexedDBCallbacksWrapper> callbacks, | |
| 31 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks, | |
| 32 const string16& database_identifier, | |
| 33 const string16& data_dir) = 0; | |
| 34 virtual void DeleteDatabase( | |
| 35 const string16& name, | |
| 36 scoped_refptr<IndexedDBCallbacksWrapper> callbacks, | |
| 37 const string16& database_identifier, | |
| 38 const string16& data_dir) = 0; | |
| 39 | |
| 40 protected: | |
| 41 virtual ~IndexedDBFactory() {} | |
| 42 friend class base::RefCounted<IndexedDBFactory>; | |
| 43 }; | |
| 44 | |
| 45 } // namespace content | |
| 46 | |
| 47 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | |
| OLD | NEW |