| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google, Inc. All Rights Reserved. | 3 * Copyright (C) 2011 Google, Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 PassRefPtr<DatabaseBackendContext> backend(); | 52 PassRefPtr<DatabaseBackendContext> backend(); |
| 53 DatabaseThread* databaseThread(); | 53 DatabaseThread* databaseThread(); |
| 54 | 54 |
| 55 void setHasOpenDatabases() { m_hasOpenDatabases = true; } | 55 void setHasOpenDatabases() { m_hasOpenDatabases = true; } |
| 56 bool hasOpenDatabases() { return m_hasOpenDatabases; } | 56 bool hasOpenDatabases() { return m_hasOpenDatabases; } |
| 57 | 57 |
| 58 // When the database cleanup is done, cleanupSync will be signalled. | 58 // When the database cleanup is done, cleanupSync will be signalled. |
| 59 bool stopDatabases(DatabaseTaskSynchronizer*); | 59 bool stopDatabases(DatabaseTaskSynchronizer*); |
| 60 | 60 |
| 61 bool allowDatabaseAccess() const; | 61 bool allowDatabaseAccess() const; |
| 62 void databaseExceededQuota(const String& name, DatabaseDetails); | |
| 63 | 62 |
| 64 private: | 63 private: |
| 65 explicit DatabaseContext(ScriptExecutionContext*); | 64 explicit DatabaseContext(ScriptExecutionContext*); |
| 66 | 65 |
| 67 void stopDatabases() { stopDatabases(0); } | 66 void stopDatabases() { stopDatabases(0); } |
| 68 | 67 |
| 69 RefPtr<DatabaseThread> m_databaseThread; | 68 RefPtr<DatabaseThread> m_databaseThread; |
| 70 bool m_hasOpenDatabases; // This never changes back to false, even after the
database thread is closed. | 69 bool m_hasOpenDatabases; // This never changes back to false, even after the
database thread is closed. |
| 71 bool m_isRegistered; | 70 bool m_isRegistered; |
| 72 bool m_hasRequestedTermination; | 71 bool m_hasRequestedTermination; |
| 73 | 72 |
| 74 friend class DatabaseBackendContext; | 73 friend class DatabaseBackendContext; |
| 75 friend class DatabaseManager; | 74 friend class DatabaseManager; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace WebCore | 77 } // namespace WebCore |
| 79 | 78 |
| 80 #endif // DatabaseContext_h | 79 #endif // DatabaseContext_h |
| OLD | NEW |