Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: content/browser/indexed_db/indexed_db_factory.h

Issue 2642943002: Allow closing IndexedDB database before deleting (Closed)
Patch Set: Fixed compilation errors in tests Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698