| 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 17 matching lines...) Expand all Loading... |
| 28 #include "modules/webdatabase/DatabaseContext.h" | 28 #include "modules/webdatabase/DatabaseContext.h" |
| 29 | 29 |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/ExecutionContext.h" | 31 #include "core/dom/ExecutionContext.h" |
| 32 #include "modules/webdatabase/Database.h" | 32 #include "modules/webdatabase/Database.h" |
| 33 #include "modules/webdatabase/DatabaseManager.h" | 33 #include "modules/webdatabase/DatabaseManager.h" |
| 34 #include "modules/webdatabase/DatabaseTask.h" | 34 #include "modules/webdatabase/DatabaseTask.h" |
| 35 #include "modules/webdatabase/DatabaseThread.h" | 35 #include "modules/webdatabase/DatabaseThread.h" |
| 36 #include "platform/weborigin/SchemeRegistry.h" | 36 #include "platform/weborigin/SchemeRegistry.h" |
| 37 #include "platform/weborigin/SecurityOrigin.h" | 37 #include "platform/weborigin/SecurityOrigin.h" |
| 38 #include "wtf/Assertions.h" | 38 #include "platform/wtf/Assertions.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 // How the DatabaseContext Life-Cycle works? | 42 // How the DatabaseContext Life-Cycle works? |
| 43 // ======================================== | 43 // ======================================== |
| 44 // ... in other words, who's keeping the DatabaseContext alive and how long does | 44 // ... in other words, who's keeping the DatabaseContext alive and how long does |
| 45 // it need to stay alive? | 45 // it need to stay alive? |
| 46 // | 46 // |
| 47 // The DatabaseContext is referenced from: | 47 // The DatabaseContext is referenced from: |
| 48 // 1. DatabaseManager | 48 // 1. DatabaseManager |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 SecurityOrigin* DatabaseContext::GetSecurityOrigin() const { | 181 SecurityOrigin* DatabaseContext::GetSecurityOrigin() const { |
| 182 return GetExecutionContext()->GetSecurityOrigin(); | 182 return GetExecutionContext()->GetSecurityOrigin(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool DatabaseContext::IsContextThread() const { | 185 bool DatabaseContext::IsContextThread() const { |
| 186 return GetExecutionContext()->IsContextThread(); | 186 return GetExecutionContext()->IsContextThread(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace blink | 189 } // namespace blink |
| OLD | NEW |