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

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

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ToT Created 7 years, 6 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const base::FilePath& data_directory); 50 const base::FilePath& data_directory);
51 51
52 protected: 52 protected:
53 friend class base::RefCounted<IndexedDBFactory>; 53 friend class base::RefCounted<IndexedDBFactory>;
54 54
55 IndexedDBFactory(); 55 IndexedDBFactory();
56 virtual ~IndexedDBFactory(); 56 virtual ~IndexedDBFactory();
57 57
58 scoped_refptr<IndexedDBBackingStore> OpenBackingStore( 58 scoped_refptr<IndexedDBBackingStore> OpenBackingStore(
59 const string16& database_identifier, 59 const string16& database_identifier,
60 const base::FilePath& data_directory); 60 const base::FilePath& data_directory,
61 WebKit::WebIDBCallbacks::DataLoss* data_loss);
61 62
62 private: 63 private:
63 typedef std::map<string16, scoped_refptr<IndexedDBDatabase> > 64 typedef std::map<string16, scoped_refptr<IndexedDBDatabase> >
64 IndexedDBDatabaseMap; 65 IndexedDBDatabaseMap;
65 IndexedDBDatabaseMap database_backend_map_; 66 IndexedDBDatabaseMap database_backend_map_;
66 67
67 typedef std::map<string16, base::WeakPtr<IndexedDBBackingStore> > 68 typedef std::map<string16, base::WeakPtr<IndexedDBBackingStore> >
68 IndexedDBBackingStoreMap; 69 IndexedDBBackingStoreMap;
69 IndexedDBBackingStoreMap backing_store_map_; 70 IndexedDBBackingStoreMap backing_store_map_;
70 71
71 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_; 72 std::set<scoped_refptr<IndexedDBBackingStore> > session_only_backing_stores_;
72 }; 73 };
73 74
74 } // namespace content 75 } // namespace content
75 76
76 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_ 77 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698