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

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

Issue 2642943002: Allow closing IndexedDB database before deleting (Closed)
Patch Set: Allow closing IndexedDB database before deleting 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 30 matching lines...) Expand all
41 std::unique_ptr<IndexedDBPendingConnection> connection, 41 std::unique_ptr<IndexedDBPendingConnection> connection,
42 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 42 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
43 const url::Origin& origin, 43 const url::Origin& origin,
44 const base::FilePath& data_directory) override; 44 const base::FilePath& data_directory) override;
45 45
46 void DeleteDatabase( 46 void DeleteDatabase(
47 const base::string16& name, 47 const base::string16& name,
48 scoped_refptr<net::URLRequestContextGetter> request_context_getter, 48 scoped_refptr<net::URLRequestContextGetter> request_context_getter,
49 scoped_refptr<IndexedDBCallbacks> callbacks, 49 scoped_refptr<IndexedDBCallbacks> callbacks,
50 const url::Origin& origin, 50 const url::Origin& origin,
51 const base::FilePath& data_directory) override; 51 const base::FilePath& data_directory,
52 bool forced_close) override;
jsbell 2017/01/20 19:34:25 nit: it's 'force_close' (no 'd') elsewhere
eostroukhov 2017/01/20 19:45:25 Done.
52 53
53 void HandleBackingStoreFailure(const url::Origin& origin) override; 54 void HandleBackingStoreFailure(const url::Origin& origin) override;
54 void HandleBackingStoreCorruption( 55 void HandleBackingStoreCorruption(
55 const url::Origin& origin, 56 const url::Origin& origin,
56 const IndexedDBDatabaseError& error) override; 57 const IndexedDBDatabaseError& error) override;
57 58
58 OriginDBs GetOpenDatabasesForOrigin(const url::Origin& origin) const override; 59 OriginDBs GetOpenDatabasesForOrigin(const url::Origin& origin) const override;
59 60
60 void ForceClose(const url::Origin& origin) override; 61 void ForceClose(const url::Origin& origin) override;
61 62
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 std::map<url::Origin, scoped_refptr<IndexedDBBackingStore>> 135 std::map<url::Origin, scoped_refptr<IndexedDBBackingStore>>
135 backing_stores_with_active_blobs_; 136 backing_stores_with_active_blobs_;
136 std::set<url::Origin> backends_opened_since_boot_; 137 std::set<url::Origin> backends_opened_since_boot_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl); 139 DISALLOW_COPY_AND_ASSIGN(IndexedDBFactoryImpl);
139 }; 140 };
140 141
141 } // namespace content 142 } // namespace content
142 143
143 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_ 144 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698