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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void unregisterDatabaseContext(DatabaseContext*); | 64 void unregisterDatabaseContext(DatabaseContext*); |
65 | 65 |
66 #if !ASSERT_DISABLED | 66 #if !ASSERT_DISABLED |
67 void didConstructDatabaseContext(); | 67 void didConstructDatabaseContext(); |
68 void didDestructDatabaseContext(); | 68 void didDestructDatabaseContext(); |
69 #else | 69 #else |
70 void didConstructDatabaseContext() { } | 70 void didConstructDatabaseContext() { } |
71 void didDestructDatabaseContext() { } | 71 void didDestructDatabaseContext() { } |
72 #endif | 72 #endif |
73 | 73 |
74 static void throwExceptionForDatabaseError(const String& method, const Strin
g& context, DatabaseError, const String& errorMessage, ExceptionState&); | 74 static void throwExceptionForDatabaseError(DatabaseError, const String& erro
rMessage, ExceptionState&); |
75 | 75 |
76 PassRefPtr<Database> openDatabase(ExecutionContext*, const String& name, con
st String& expectedVersion, const String& displayName, unsigned long estimatedSi
ze, PassRefPtr<DatabaseCallback>, DatabaseError&, String& errorMessage); | 76 PassRefPtr<Database> openDatabase(ExecutionContext*, const String& name, con
st String& expectedVersion, const String& displayName, unsigned long estimatedSi
ze, PassRefPtr<DatabaseCallback>, DatabaseError&, String& errorMessage); |
77 PassRefPtr<DatabaseSync> openDatabaseSync(ExecutionContext*, const String& n
ame, const String& expectedVersion, const String& displayName, unsigned long est
imatedSize, PassRefPtr<DatabaseCallback>, DatabaseError&, String& errorMessage); | 77 PassRefPtr<DatabaseSync> openDatabaseSync(ExecutionContext*, const String& n
ame, const String& expectedVersion, const String& displayName, unsigned long est
imatedSize, PassRefPtr<DatabaseCallback>, DatabaseError&, String& errorMessage); |
78 | 78 |
79 bool hasOpenDatabases(ExecutionContext*); | 79 bool hasOpenDatabases(ExecutionContext*); |
80 void stopDatabases(ExecutionContext*, DatabaseTaskSynchronizer*); | 80 void stopDatabases(ExecutionContext*, DatabaseTaskSynchronizer*); |
81 | 81 |
82 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI
fDoesNotExist = true); | 82 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI
fDoesNotExist = true); |
83 | 83 |
84 void closeDatabasesImmediately(const String& originIdentifier, const String&
name); | 84 void closeDatabasesImmediately(const String& originIdentifier, const String&
name); |
(...skipping 22 matching lines...) Expand all Loading... |
107 #if !ASSERT_DISABLED | 107 #if !ASSERT_DISABLED |
108 int m_databaseContextRegisteredCount; | 108 int m_databaseContextRegisteredCount; |
109 int m_databaseContextInstanceCount; | 109 int m_databaseContextInstanceCount; |
110 #endif | 110 #endif |
111 Mutex m_contextMapLock; | 111 Mutex m_contextMapLock; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace WebCore | 114 } // namespace WebCore |
115 | 115 |
116 #endif // DatabaseManager_h | 116 #endif // DatabaseManager_h |
OLD | NEW |