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> |
| 11 #include <memory> |
11 #include <set> | 12 #include <set> |
12 #include <string> | 13 #include <string> |
13 #include <utility> | 14 #include <utility> |
14 | 15 |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
18 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
19 #include "content/browser/indexed_db/indexed_db_callbacks.h" | 20 #include "content/browser/indexed_db/indexed_db_callbacks.h" |
20 #include "content/browser/indexed_db/indexed_db_database.h" | 21 #include "content/browser/indexed_db/indexed_db_database.h" |
(...skipping 20 matching lines...) Expand all Loading... |
41 typedef std::pair<OriginDBMapIterator, OriginDBMapIterator> OriginDBs; | 42 typedef std::pair<OriginDBMapIterator, OriginDBMapIterator> OriginDBs; |
42 | 43 |
43 virtual void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier, | 44 virtual void ReleaseDatabase(const IndexedDBDatabase::Identifier& identifier, |
44 bool forced_close) = 0; | 45 bool forced_close) = 0; |
45 | 46 |
46 virtual void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks, | 47 virtual void GetDatabaseNames(scoped_refptr<IndexedDBCallbacks> callbacks, |
47 const url::Origin& origin, | 48 const url::Origin& origin, |
48 const base::FilePath& data_directory, | 49 const base::FilePath& data_directory, |
49 net::URLRequestContext* request_context) = 0; | 50 net::URLRequestContext* request_context) = 0; |
50 virtual void Open(const base::string16& name, | 51 virtual void Open(const base::string16& name, |
51 const IndexedDBPendingConnection& connection, | 52 std::unique_ptr<IndexedDBPendingConnection> connection, |
52 net::URLRequestContext* request_context, | 53 net::URLRequestContext* request_context, |
53 const url::Origin& origin, | 54 const url::Origin& origin, |
54 const base::FilePath& data_directory) = 0; | 55 const base::FilePath& data_directory) = 0; |
55 | 56 |
56 virtual void DeleteDatabase(const base::string16& name, | 57 virtual void DeleteDatabase(const base::string16& name, |
57 net::URLRequestContext* request_context, | 58 net::URLRequestContext* request_context, |
58 scoped_refptr<IndexedDBCallbacks> callbacks, | 59 scoped_refptr<IndexedDBCallbacks> callbacks, |
59 const url::Origin& origin, | 60 const url::Origin& origin, |
60 const base::FilePath& data_directory) = 0; | 61 const base::FilePath& data_directory) = 0; |
61 | 62 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool first_time, | 106 bool first_time, |
106 leveldb::Status* status) = 0; | 107 leveldb::Status* status) = 0; |
107 | 108 |
108 private: | 109 private: |
109 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); | 110 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactory); |
110 }; | 111 }; |
111 | 112 |
112 } // namespace content | 113 } // namespace content |
113 | 114 |
114 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ | 115 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ |
OLD | NEW |