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

Side by Side Diff: Source/modules/indexeddb/IDBFactoryBackendImpl.h

Issue 78053006: [oilpan] Move IDBDatabase, IDBDatabaseCallbacks, IDBDatabaseBackendInterface and other related clas… (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public: 50 public:
51 static IDBFactoryBackendImpl* create() 51 static IDBFactoryBackendImpl* create()
52 { 52 {
53 return new IDBFactoryBackendImpl(); 53 return new IDBFactoryBackendImpl();
54 } 54 }
55 virtual ~IDBFactoryBackendImpl(); 55 virtual ~IDBFactoryBackendImpl();
56 56
57 // Notifications from weak pointers. 57 // Notifications from weak pointers.
58 virtual void removeIDBDatabaseBackend(const String& uniqueIdentifier); 58 virtual void removeIDBDatabaseBackend(const String& uniqueIdentifier);
59 59
60 virtual void getDatabaseNames(PassRefPtr<IDBCallbacks>, const String& databa seIdentifier, ScriptExecutionContext*, const String& dataDir); 60 virtual void getDatabaseNames(IDBCallbacks*, const String& databaseIdentifie r, ScriptExecutionContext*, const String& dataDir);
61 virtual void open(const String& name, int64_t version, int64_t transactionId , PassRefPtr<IDBCallbacks>, PassRefPtr<IDBDatabaseCallbacks>, const String& data baseIdentifier, ScriptExecutionContext*, const String& dataDir); 61 virtual void open(const String& name, int64_t version, int64_t transactionId , IDBCallbacks*, IDBDatabaseCallbacks*, const String& databaseIdentifier, Script ExecutionContext*, const String& dataDir);
62 62
63 virtual void deleteDatabase(const String& name, PassRefPtr<IDBCallbacks>, co nst String& databaseIdentifier, ScriptExecutionContext*, const String& dataDir); 63 virtual void deleteDatabase(const String& name, IDBCallbacks*, const String& databaseIdentifier, ScriptExecutionContext*, const String& dataDir);
64 64
65 virtual void trace(Visitor*) { } 65 virtual void trace(Visitor*) { }
66 66
67 protected: 67 protected:
68 IDBFactoryBackendImpl(); 68 IDBFactoryBackendImpl();
69 virtual PassRefPtr<IDBBackingStore> openBackingStore(const String& databaseI dentifier, const String& dataDir); 69 virtual PassRefPtr<IDBBackingStore> openBackingStore(const String& databaseI dentifier, const String& dataDir);
70 70
71 private: 71 private:
72 typedef HashMap<String, RefPtr<IDBDatabaseBackendImpl> > IDBDatabaseBackendM ap; 72 typedef HashMap<String, Persistent<IDBDatabaseBackendImpl> > IDBDatabaseBack endMap;
73 IDBDatabaseBackendMap m_databaseBackendMap; 73 IDBDatabaseBackendMap m_databaseBackendMap;
74 74
75 typedef HashMap<String, WeakPtr<IDBBackingStore> > IDBBackingStoreMap; 75 typedef HashMap<String, WeakPtr<IDBBackingStore> > IDBBackingStoreMap;
76 IDBBackingStoreMap m_backingStoreMap; 76 IDBBackingStoreMap m_backingStoreMap;
77 77
78 HashSet<RefPtr<IDBBackingStore> > m_sessionOnlyBackingStores; 78 HashSet<RefPtr<IDBBackingStore> > m_sessionOnlyBackingStores;
79 79
80 // Only one instance of the factory should exist at any given time. 80 // Only one instance of the factory should exist at any given time.
81 static IDBFactoryBackendImpl* idbFactoryBackendImpl; 81 static IDBFactoryBackendImpl* idbFactoryBackendImpl;
82 }; 82 };
83 83
84 } // namespace WebCore 84 } // namespace WebCore
85 85
86 #endif // IDBFactoryBackendImpl_h 86 #endif // IDBFactoryBackendImpl_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.cpp ('k') | Source/modules/indexeddb/IDBFactoryBackendImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698