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 28 matching lines...) Expand all Loading... |
39 class AbstractDatabaseServer; | 39 class AbstractDatabaseServer; |
40 class Database; | 40 class Database; |
41 class DatabaseBackendBase; | 41 class DatabaseBackendBase; |
42 class DatabaseCallback; | 42 class DatabaseCallback; |
43 class DatabaseContext; | 43 class DatabaseContext; |
44 class DatabaseSync; | 44 class DatabaseSync; |
45 class DatabaseTaskSynchronizer; | 45 class DatabaseTaskSynchronizer; |
46 class SecurityOrigin; | 46 class SecurityOrigin; |
47 class ScriptExecutionContext; | 47 class ScriptExecutionContext; |
48 | 48 |
49 typedef int ExceptionCode; | |
50 | |
51 class DatabaseManager { | 49 class DatabaseManager { |
52 WTF_MAKE_NONCOPYABLE(DatabaseManager); WTF_MAKE_FAST_ALLOCATED; | 50 WTF_MAKE_NONCOPYABLE(DatabaseManager); WTF_MAKE_FAST_ALLOCATED; |
53 public: | 51 public: |
54 static DatabaseManager& manager(); | 52 static DatabaseManager& manager(); |
55 | 53 |
56 // This gets a DatabaseContext for the specified ScriptExecutionContext. | 54 // This gets a DatabaseContext for the specified ScriptExecutionContext. |
57 // If one doesn't already exist, it will create a new one. | 55 // If one doesn't already exist, it will create a new one. |
58 PassRefPtr<DatabaseContext> databaseContextFor(ScriptExecutionContext*); | 56 PassRefPtr<DatabaseContext> databaseContextFor(ScriptExecutionContext*); |
59 | 57 |
60 // These 2 methods are for DatabaseContext (un)registration, and should only | 58 // These 2 methods are for DatabaseContext (un)registration, and should only |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 #if !ASSERT_DISABLED | 104 #if !ASSERT_DISABLED |
107 int m_databaseContextRegisteredCount; | 105 int m_databaseContextRegisteredCount; |
108 int m_databaseContextInstanceCount; | 106 int m_databaseContextInstanceCount; |
109 #endif | 107 #endif |
110 Mutex m_contextMapLock; | 108 Mutex m_contextMapLock; |
111 }; | 109 }; |
112 | 110 |
113 } // namespace WebCore | 111 } // namespace WebCore |
114 | 112 |
115 #endif // DatabaseManager_h | 113 #endif // DatabaseManager_h |
OLD | NEW |