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 "modules/webdatabase/Database.h" | 33 #include "modules/webdatabase/Database.h" |
34 #include "modules/webdatabase/DatabaseManager.h" | 34 #include "modules/webdatabase/DatabaseManager.h" |
35 #include "modules/webdatabase/DatabaseTask.h" | 35 #include "modules/webdatabase/DatabaseTask.h" |
36 #include "modules/webdatabase/DatabaseThread.h" | 36 #include "modules/webdatabase/DatabaseThread.h" |
37 #include "platform/weborigin/SchemeRegistry.h" | 37 #include "platform/weborigin/SchemeRegistry.h" |
38 #include "platform/weborigin/SecurityOrigin.h" | 38 #include "platform/weborigin/SecurityOrigin.h" |
39 #include "wtf/Assertions.h" | 39 #include "wtf/Assertions.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 // How the DatabaseContext Life-Cycle works? | 43 // How the DatabaseContext Life-Cycle works? |
44 // ======================================== | 44 // ======================================== |
45 // ... in other words, who's keeping the DatabaseContext alive and how long does | 45 // ... in other words, who's keeping the DatabaseContext alive and how long does |
46 // it need to stay alive? | 46 // it need to stay alive? |
47 // | 47 // |
48 // The DatabaseContext is referenced from RefPtrs in: | 48 // The DatabaseContext is referenced from RefPtrs in: |
49 // 1. ExecutionContext | 49 // 1. ExecutionContext |
50 // 2. Database | 50 // 2. Database |
51 // | 51 // |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 SecurityOrigin* DatabaseContext::securityOrigin() const | 259 SecurityOrigin* DatabaseContext::securityOrigin() const |
260 { | 260 { |
261 return executionContext()->securityOrigin(); | 261 return executionContext()->securityOrigin(); |
262 } | 262 } |
263 | 263 |
264 bool DatabaseContext::isContextThread() const | 264 bool DatabaseContext::isContextThread() const |
265 { | 265 { |
266 return executionContext()->isContextThread(); | 266 return executionContext()->isContextThread(); |
267 } | 267 } |
268 | 268 |
269 } // namespace WebCore | 269 } // namespace blink |
OLD | NEW |