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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #if ENABLE(ASSERT) | 56 #if ENABLE(ASSERT) |
57 void didConstructDatabaseContext(); | 57 void didConstructDatabaseContext(); |
58 void didDestructDatabaseContext(); | 58 void didDestructDatabaseContext(); |
59 #else | 59 #else |
60 void didConstructDatabaseContext() { } | 60 void didConstructDatabaseContext() { } |
61 void didDestructDatabaseContext() { } | 61 void didDestructDatabaseContext() { } |
62 #endif | 62 #endif |
63 | 63 |
64 static void throwExceptionForDatabaseError(DatabaseError, const String& erro
rMessage, ExceptionState&); | 64 static void throwExceptionForDatabaseError(DatabaseError, const String& erro
rMessage, ExceptionState&); |
65 | 65 |
66 PassRefPtrWillBeRawPtr<Database> openDatabase(ExecutionContext*, const Strin
g& name, const String& expectedVersion, const String& displayName, unsigned long
estimatedSize, PassOwnPtrWillBeRawPtr<DatabaseCallback>, DatabaseError&, String
& errorMessage); | 66 PassRefPtrWillBeRawPtr<Database> openDatabase(ExecutionContext*, const Strin
g& name, const String& expectedVersion, const String& displayName, unsigned long
estimatedSize, DatabaseCallback*, DatabaseError&, String& errorMessage); |
67 | 67 |
68 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI
fDoesNotExist = true); | 68 String fullPathForDatabase(SecurityOrigin*, const String& name, bool createI
fDoesNotExist = true); |
69 | 69 |
70 private: | 70 private: |
71 DatabaseManager(); | 71 DatabaseManager(); |
72 ~DatabaseManager(); | 72 ~DatabaseManager(); |
73 | 73 |
74 // This gets a DatabaseContext for the specified ExecutionContext. | 74 // This gets a DatabaseContext for the specified ExecutionContext. |
75 // If one doesn't already exist, it will create a new one. | 75 // If one doesn't already exist, it will create a new one. |
76 DatabaseContext* databaseContextFor(ExecutionContext*); | 76 DatabaseContext* databaseContextFor(ExecutionContext*); |
(...skipping 11 matching lines...) Expand all Loading... |
88 ContextMap m_contextMap; | 88 ContextMap m_contextMap; |
89 #if ENABLE(ASSERT) | 89 #if ENABLE(ASSERT) |
90 int m_databaseContextRegisteredCount; | 90 int m_databaseContextRegisteredCount; |
91 int m_databaseContextInstanceCount; | 91 int m_databaseContextInstanceCount; |
92 #endif | 92 #endif |
93 }; | 93 }; |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
96 | 96 |
97 #endif // DatabaseManager_h | 97 #endif // DatabaseManager_h |
OLD | NEW |