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 22 matching lines...) Expand all Loading... |
33 #include "core/page/Chrome.h" | 33 #include "core/page/Chrome.h" |
34 #include "core/page/ChromeClient.h" | 34 #include "core/page/ChromeClient.h" |
35 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
36 #include "core/page/Settings.h" | 36 #include "core/page/Settings.h" |
37 #include "modules/webdatabase/Database.h" | 37 #include "modules/webdatabase/Database.h" |
38 #include "modules/webdatabase/DatabaseManager.h" | 38 #include "modules/webdatabase/DatabaseManager.h" |
39 #include "modules/webdatabase/DatabaseTask.h" | 39 #include "modules/webdatabase/DatabaseTask.h" |
40 #include "modules/webdatabase/DatabaseThread.h" | 40 #include "modules/webdatabase/DatabaseThread.h" |
41 #include "platform/weborigin/SchemeRegistry.h" | 41 #include "platform/weborigin/SchemeRegistry.h" |
42 #include "platform/weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
| 43 #include "wtf/Assertions.h" |
43 | 44 |
44 namespace WebCore { | 45 namespace WebCore { |
45 | 46 |
46 // How the DatabaseContext Life-Cycle works? | 47 // How the DatabaseContext Life-Cycle works? |
47 // ======================================== | 48 // ======================================== |
48 // ... in other words, who's keeping the DatabaseContext alive and how long does | 49 // ... in other words, who's keeping the DatabaseContext alive and how long does |
49 // it need to stay alive? | 50 // it need to stay alive? |
50 // | 51 // |
51 // The DatabaseContext is referenced from RefPtrs in: | 52 // The DatabaseContext is referenced from RefPtrs in: |
52 // 1. ExecutionContext | 53 // 1. ExecutionContext |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 { | 208 { |
208 return executionContext()->securityOrigin(); | 209 return executionContext()->securityOrigin(); |
209 } | 210 } |
210 | 211 |
211 bool DatabaseContext::isContextThread() const | 212 bool DatabaseContext::isContextThread() const |
212 { | 213 { |
213 return executionContext()->isContextThread(); | 214 return executionContext()->isContextThread(); |
214 } | 215 } |
215 | 216 |
216 } // namespace WebCore | 217 } // namespace WebCore |
OLD | NEW |