| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #ifndef DatabaseContext_h | 28 #ifndef DatabaseContext_h |
| 29 #define DatabaseContext_h | 29 #define DatabaseContext_h |
| 30 | 30 |
| 31 #include "core/dom/ActiveDOMObject.h" | 31 #include "core/dom/ActiveDOMObject.h" |
| 32 #include "core/workers/WorkerGlobalScope.h" | 32 #include "core/workers/WorkerGlobalScope.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
| 35 #include "wtf/ThreadSafeRefCounted.h" | 35 #include "wtf/ThreadSafeRefCounted.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace blink { |
| 38 | 38 |
| 39 class Database; | 39 class Database; |
| 40 class DatabaseBackendBase; | 40 class DatabaseBackendBase; |
| 41 class DatabaseContext; | 41 class DatabaseContext; |
| 42 class TaskSynchronizer; | 42 class TaskSynchronizer; |
| 43 class DatabaseThread; | 43 class DatabaseThread; |
| 44 class ExecutionContext; | 44 class ExecutionContext; |
| 45 class SecurityOrigin; | 45 class SecurityOrigin; |
| 46 | 46 |
| 47 class DatabaseContext FINAL | 47 class DatabaseContext FINAL |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 HeapHashMap<WeakMember<DatabaseBackendBase>, OwnPtr<DatabaseCloser> > m_open
SyncDatabases; | 93 HeapHashMap<WeakMember<DatabaseBackendBase>, OwnPtr<DatabaseCloser> > m_open
SyncDatabases; |
| 94 #else | 94 #else |
| 95 // The contents of m_openSyncDatabases are raw pointers. It's safe because | 95 // The contents of m_openSyncDatabases are raw pointers. It's safe because |
| 96 // DatabaseBackendSync is always closed before destruction. | 96 // DatabaseBackendSync is always closed before destruction. |
| 97 HashSet<DatabaseBackendBase*> m_openSyncDatabases; | 97 HashSet<DatabaseBackendBase*> m_openSyncDatabases; |
| 98 #endif | 98 #endif |
| 99 bool m_hasOpenDatabases; // This never changes back to false, even after the
database thread is closed. | 99 bool m_hasOpenDatabases; // This never changes back to false, even after the
database thread is closed. |
| 100 bool m_hasRequestedTermination; | 100 bool m_hasRequestedTermination; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace WebCore | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // DatabaseContext_h | 105 #endif // DatabaseContext_h |
| OLD | NEW |