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 20 matching lines...) Expand all Loading... |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/dom/ExecutionContext.h" | 32 #include "core/dom/ExecutionContext.h" |
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 "weborigin/SchemeRegistry.h" | 41 #include "platform/weborigin/SchemeRegistry.h" |
42 #include "weborigin/SecurityOrigin.h" | 42 #include "platform/weborigin/SecurityOrigin.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 // How the DatabaseContext Life-Cycle works? | 46 // How the DatabaseContext Life-Cycle works? |
47 // ======================================== | 47 // ======================================== |
48 // ... in other words, who's keeping the DatabaseContext alive and how long does | 48 // ... in other words, who's keeping the DatabaseContext alive and how long does |
49 // it need to stay alive? | 49 // it need to stay alive? |
50 // | 50 // |
51 // The DatabaseContext is referenced from RefPtrs in: | 51 // The DatabaseContext is referenced from RefPtrs in: |
52 // 1. ExecutionContext | 52 // 1. ExecutionContext |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 { | 208 { |
209 return executionContext()->securityOrigin(); | 209 return executionContext()->securityOrigin(); |
210 } | 210 } |
211 | 211 |
212 bool DatabaseContext::isContextThread() const | 212 bool DatabaseContext::isContextThread() const |
213 { | 213 { |
214 return executionContext()->isContextThread(); | 214 return executionContext()->isContextThread(); |
215 } | 215 } |
216 | 216 |
217 } // namespace WebCore | 217 } // namespace WebCore |
OLD | NEW |