Index: content/browser/indexed_db/indexed_db_database.h |
diff --git a/content/browser/indexed_db/indexed_db_database.h b/content/browser/indexed_db/indexed_db_database.h |
index d9e7f66830c6de99cc5012504ea7ae558a7c718c..66bfe5dc3cc1821d28bcea03b4934021d7a1ea21 100644 |
--- a/content/browser/indexed_db/indexed_db_database.h |
+++ b/content/browser/indexed_db/indexed_db_database.h |
@@ -235,8 +235,19 @@ class CONTENT_EXPORT IndexedDBDatabase |
scoped_refptr<IndexedDBCallbacks> callbacks, |
IndexedDBTransaction* transaction); |
+ protected: |
+ IndexedDBDatabase(const base::string16& name, |
+ IndexedDBBackingStore* backing_store, |
+ IndexedDBFactory* factory, |
+ const Identifier& unique_identifier); |
+ virtual ~IndexedDBDatabase(); |
+ |
+ // May be overridden in tests. |
+ virtual size_t GetMaxMessageSizeInBytes() const; |
+ |
private: |
friend class base::RefCounted<IndexedDBDatabase>; |
+ friend class IndexedDBClassFactory; |
class PendingDeleteCall; |
class PendingSuccessCall; |
@@ -247,12 +258,6 @@ class CONTENT_EXPORT IndexedDBDatabase |
typedef std::list<PendingDeleteCall*> PendingDeleteCallList; |
typedef list_set<IndexedDBConnection*> ConnectionSet; |
- IndexedDBDatabase(const base::string16& name, |
- IndexedDBBackingStore* backing_store, |
- IndexedDBFactory* factory, |
- const Identifier& unique_identifier); |
- ~IndexedDBDatabase(); |
- |
bool IsOpenConnectionBlocked() const; |
leveldb::Status OpenInternal(); |
void RunVersionChangeTransaction(scoped_refptr<IndexedDBCallbacks> callbacks, |