| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "modules/webdatabase/SQLTransactionCallback.h" | 45 #include "modules/webdatabase/SQLTransactionCallback.h" |
| 46 #include "modules/webdatabase/SQLTransactionClient.h" | 46 #include "modules/webdatabase/SQLTransactionClient.h" |
| 47 #include "modules/webdatabase/SQLTransactionCoordinator.h" | 47 #include "modules/webdatabase/SQLTransactionCoordinator.h" |
| 48 #include "modules/webdatabase/SQLTransactionErrorCallback.h" | 48 #include "modules/webdatabase/SQLTransactionErrorCallback.h" |
| 49 #include "modules/webdatabase/StorageLog.h" | 49 #include "modules/webdatabase/StorageLog.h" |
| 50 #include "modules/webdatabase/sqlite/SQLiteStatement.h" | 50 #include "modules/webdatabase/sqlite/SQLiteStatement.h" |
| 51 #include "modules/webdatabase/sqlite/SQLiteTransaction.h" | 51 #include "modules/webdatabase/sqlite/SQLiteTransaction.h" |
| 52 #include "platform/CrossThreadFunctional.h" | 52 #include "platform/CrossThreadFunctional.h" |
| 53 #include "platform/WaitableEvent.h" | 53 #include "platform/WaitableEvent.h" |
| 54 #include "platform/heap/SafePoint.h" | 54 #include "platform/heap/SafePoint.h" |
| 55 #include "platform/wtf/Atomics.h" |
| 56 #include "platform/wtf/CurrentTime.h" |
| 55 #include "public/platform/Platform.h" | 57 #include "public/platform/Platform.h" |
| 56 #include "public/platform/WebDatabaseObserver.h" | 58 #include "public/platform/WebDatabaseObserver.h" |
| 57 #include "public/platform/WebSecurityOrigin.h" | 59 #include "public/platform/WebSecurityOrigin.h" |
| 58 #include "wtf/Atomics.h" | |
| 59 #include "wtf/CurrentTime.h" | |
| 60 | 60 |
| 61 // Registering "opened" databases with the DatabaseTracker | 61 // Registering "opened" databases with the DatabaseTracker |
| 62 // ======================================================= | 62 // ======================================================= |
| 63 // The DatabaseTracker maintains a list of databases that have been | 63 // The DatabaseTracker maintains a list of databases that have been |
| 64 // "opened" so that the client can call interrupt or delete on every database | 64 // "opened" so that the client can call interrupt or delete on every database |
| 65 // associated with a DatabaseContext. | 65 // associated with a DatabaseContext. |
| 66 // | 66 // |
| 67 // We will only call DatabaseTracker::addOpenDatabase() to add the database | 67 // We will only call DatabaseTracker::addOpenDatabase() to add the database |
| 68 // to the tracker as opened when we've succeeded in opening the database, | 68 // to the tracker as opened when we've succeeded in opening the database, |
| 69 // and will set m_opened to true. Similarly, we only call | 69 // and will set m_opened to true. Similarly, we only call |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 | 950 |
| 951 bool Database::Opened() { | 951 bool Database::Opened() { |
| 952 return static_cast<bool>(AcquireLoad(&opened_)); | 952 return static_cast<bool>(AcquireLoad(&opened_)); |
| 953 } | 953 } |
| 954 | 954 |
| 955 WebTaskRunner* Database::GetDatabaseTaskRunner() const { | 955 WebTaskRunner* Database::GetDatabaseTaskRunner() const { |
| 956 return database_task_runner_.Get(); | 956 return database_task_runner_.Get(); |
| 957 } | 957 } |
| 958 | 958 |
| 959 } // namespace blink | 959 } // namespace blink |
| OLD | NEW |