| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // This gets a DatabaseContext for the specified ExecutionContext if | 76 // This gets a DatabaseContext for the specified ExecutionContext if |
| 77 // it already exist previously. Otherwise, it returns 0. | 77 // it already exist previously. Otherwise, it returns 0. |
| 78 DatabaseContext* existingDatabaseContextFor(ExecutionContext*); | 78 DatabaseContext* existingDatabaseContextFor(ExecutionContext*); |
| 79 | 79 |
| 80 Database* openDatabaseInternal(ExecutionContext*, | 80 Database* openDatabaseInternal(ExecutionContext*, |
| 81 const String& name, const String& expectedVersion, const String& display
Name, | 81 const String& name, const String& expectedVersion, const String& display
Name, |
| 82 unsigned long estimatedSize, bool setVersionInNewDatabase, DatabaseError
&, String& errorMessage); | 82 unsigned long estimatedSize, bool setVersionInNewDatabase, DatabaseError
&, String& errorMessage); |
| 83 | 83 |
| 84 static void logErrorMessage(ExecutionContext*, const String& message); | 84 static void logErrorMessage(ExecutionContext*, const String& message); |
| 85 | 85 |
| 86 typedef PersistentHeapHashMap<ExecutionContext*, Member<DatabaseContext> > C
ontextMap; | 86 typedef PersistentHeapHashMap<ExecutionContext*, Member<DatabaseContext>> Co
ntextMap; |
| 87 ContextMap m_contextMap; | 87 ContextMap m_contextMap; |
| 88 #if ENABLE(ASSERT) | 88 #if ENABLE(ASSERT) |
| 89 int m_databaseContextRegisteredCount; | 89 int m_databaseContextRegisteredCount; |
| 90 int m_databaseContextInstanceCount; | 90 int m_databaseContextInstanceCount; |
| 91 #endif | 91 #endif |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // DatabaseManager_h | 96 #endif // DatabaseManager_h |
| OLD | NEW |