OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "modules/webdatabase/QuotaTracker.h" | 39 #include "modules/webdatabase/QuotaTracker.h" |
40 #include "modules/webdatabase/sqlite/SQLiteFileSystem.h" | 40 #include "modules/webdatabase/sqlite/SQLiteFileSystem.h" |
41 #include "platform/weborigin/DatabaseIdentifier.h" | 41 #include "platform/weborigin/DatabaseIdentifier.h" |
42 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
43 #include "platform/weborigin/SecurityOriginHash.h" | 43 #include "platform/weborigin/SecurityOriginHash.h" |
44 #include "public/platform/Platform.h" | 44 #include "public/platform/Platform.h" |
45 #include "public/platform/WebDatabaseObserver.h" | 45 #include "public/platform/WebDatabaseObserver.h" |
46 #include "wtf/Assertions.h" | 46 #include "wtf/Assertions.h" |
47 #include "wtf/StdLibExtras.h" | 47 #include "wtf/StdLibExtras.h" |
48 | 48 |
49 namespace WebCore { | 49 namespace blink { |
50 | 50 |
51 static void databaseClosed(DatabaseBackendBase* database) | 51 static void databaseClosed(DatabaseBackendBase* database) |
52 { | 52 { |
53 if (blink::Platform::current()->databaseObserver()) { | 53 if (blink::Platform::current()->databaseObserver()) { |
54 blink::Platform::current()->databaseObserver()->databaseClosed( | 54 blink::Platform::current()->databaseObserver()->databaseClosed( |
55 createDatabaseIdentifierFromSecurityOrigin(database->securityOrigin(
)), | 55 createDatabaseIdentifierFromSecurityOrigin(database->securityOrigin(
)), |
56 database->stringIdentifier()); | 56 database->stringIdentifier()); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 DatabaseSet::iterator found = databaseSet->find(database); | 284 DatabaseSet::iterator found = databaseSet->find(database); |
285 if (found == databaseSet->end()) | 285 if (found == databaseSet->end()) |
286 return; | 286 return; |
287 } | 287 } |
288 | 288 |
289 // And we have to call closeImmediately() without our collection lock being
held. | 289 // And we have to call closeImmediately() without our collection lock being
held. |
290 database->closeImmediately(); | 290 database->closeImmediately(); |
291 } | 291 } |
292 | 292 |
293 } | 293 } |
OLD | NEW |