OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "core/dom/ExceptionCode.h" | 33 #include "core/dom/ExceptionCode.h" |
34 #include "core/platform/Logging.h" | 34 #include "core/platform/Logging.h" |
35 #include "core/platform/sql/SQLiteStatement.h" | 35 #include "core/platform/sql/SQLiteStatement.h" |
36 #include "core/platform/sql/SQLiteTransaction.h" | 36 #include "core/platform/sql/SQLiteTransaction.h" |
37 #include "modules/webdatabase/DatabaseAuthorizer.h" | 37 #include "modules/webdatabase/DatabaseAuthorizer.h" |
38 #include "modules/webdatabase/DatabaseBackendContext.h" | 38 #include "modules/webdatabase/DatabaseBackendContext.h" |
39 #include "modules/webdatabase/DatabaseBase.h" | 39 #include "modules/webdatabase/DatabaseBase.h" |
40 #include "modules/webdatabase/DatabaseContext.h" | 40 #include "modules/webdatabase/DatabaseContext.h" |
41 #include "modules/webdatabase/DatabaseManager.h" | 41 #include "modules/webdatabase/DatabaseManager.h" |
| 42 #include "modules/webdatabase/DatabaseObserver.h" |
42 #include "modules/webdatabase/DatabaseTracker.h" | 43 #include "modules/webdatabase/DatabaseTracker.h" |
43 #include "weborigin/SecurityOrigin.h" | 44 #include "weborigin/SecurityOrigin.h" |
44 #include "wtf/HashMap.h" | 45 #include "wtf/HashMap.h" |
45 #include "wtf/HashSet.h" | 46 #include "wtf/HashSet.h" |
46 #include "wtf/PassRefPtr.h" | 47 #include "wtf/PassRefPtr.h" |
47 #include "wtf/RefPtr.h" | 48 #include "wtf/RefPtr.h" |
48 #include "wtf/StdLibExtras.h" | 49 #include "wtf/StdLibExtras.h" |
49 #include "wtf/text/CString.h" | 50 #include "wtf/text/CString.h" |
50 #include "wtf/text/StringHash.h" | 51 #include "wtf/text/StringHash.h" |
51 | 52 |
52 #include "modules/webdatabase/chromium/DatabaseObserver.h" // For error reportin
g. | |
53 | |
54 // Registering "opened" databases with the DatabaseTracker | 53 // Registering "opened" databases with the DatabaseTracker |
55 // ======================================================= | 54 // ======================================================= |
56 // The DatabaseTracker maintains a list of databases that have been | 55 // The DatabaseTracker maintains a list of databases that have been |
57 // "opened" so that the client can call interrupt or delete on every database | 56 // "opened" so that the client can call interrupt or delete on every database |
58 // associated with a DatabaseBackendContext. | 57 // associated with a DatabaseBackendContext. |
59 // | 58 // |
60 // We will only call DatabaseTracker::addOpenDatabase() to add the database | 59 // We will only call DatabaseTracker::addOpenDatabase() to add the database |
61 // to the tracker as opened when we've succeeded in opening the database, | 60 // to the tracker as opened when we've succeeded in opening the database, |
62 // and will set m_opened to true. Similarly, we only call | 61 // and will set m_opened to true. Similarly, we only call |
63 // DatabaseTracker::removeOpenDatabase() to remove the database from the | 62 // DatabaseTracker::removeOpenDatabase() to remove the database from the |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 DatabaseObserver::reportExecuteStatementResult(this, errorSite, webSqlErrorC
ode, sqliteErrorCode); | 630 DatabaseObserver::reportExecuteStatementResult(this, errorSite, webSqlErrorC
ode, sqliteErrorCode); |
632 } | 631 } |
633 | 632 |
634 void DatabaseBackendBase::reportVacuumDatabaseResult(int sqliteErrorCode) | 633 void DatabaseBackendBase::reportVacuumDatabaseResult(int sqliteErrorCode) |
635 { | 634 { |
636 DatabaseObserver::reportVacuumDatabaseResult(this, sqliteErrorCode); | 635 DatabaseObserver::reportVacuumDatabaseResult(this, sqliteErrorCode); |
637 } | 636 } |
638 | 637 |
639 | 638 |
640 } // namespace WebCore | 639 } // namespace WebCore |
OLD | NEW |