| 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_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 std::unique_ptr<IndexedDBPendingConnection> connection, | 54 std::unique_ptr<IndexedDBPendingConnection> connection, |
| 55 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 55 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 56 const url::Origin& origin, | 56 const url::Origin& origin, |
| 57 const base::FilePath& data_directory) = 0; | 57 const base::FilePath& data_directory) = 0; |
| 58 | 58 |
| 59 virtual void DeleteDatabase( | 59 virtual void DeleteDatabase( |
| 60 const base::string16& name, | 60 const base::string16& name, |
| 61 scoped_refptr<net::URLRequestContextGetter> request_context_getter, | 61 scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| 62 scoped_refptr<IndexedDBCallbacks> callbacks, | 62 scoped_refptr<IndexedDBCallbacks> callbacks, |
| 63 const url::Origin& origin, | 63 const url::Origin& origin, |
| 64 const base::FilePath& data_directory) = 0; | 64 const base::FilePath& data_directory, |
| 65 bool force_close) = 0; |
| 65 | 66 |
| 66 virtual void HandleBackingStoreFailure(const url::Origin& origin) = 0; | 67 virtual void HandleBackingStoreFailure(const url::Origin& origin) = 0; |
| 67 virtual void HandleBackingStoreCorruption( | 68 virtual void HandleBackingStoreCorruption( |
| 68 const url::Origin& origin, | 69 const url::Origin& origin, |
| 69 const IndexedDBDatabaseError& error) = 0; | 70 const IndexedDBDatabaseError& error) = 0; |
| 70 | 71 |
| 71 virtual OriginDBs GetOpenDatabasesForOrigin( | 72 virtual OriginDBs GetOpenDatabasesForOrigin( |
| 72 const url::Origin& origin) const = 0; | 73 const url::Origin& origin) const = 0; |
| 73 | 74 |
| 74 virtual void ForceClose(const url::Origin& origin) = 0; | 75 virtual void ForceClose(const url::Origin& origin) = 0; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 bool first_time, | 110 bool first_time, |
| 110 leveldb::Status* status) = 0; | 111 leveldb::Status* status) = 0; |
| 111 | 112 |
| 112 private: | 113 private: |
| 113 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); | 114 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace content | 117 } // namespace content |
| 117 | 118 |
| 118 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 119 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
| OLD | NEW |