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 met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 return nullptr; | 85 return nullptr; |
86 | 86 |
87 Page* page = document->page(); | 87 Page* page = document->page(); |
88 if (!page) | 88 if (!page) |
89 return nullptr; | 89 return nullptr; |
90 | 90 |
91 if (!m_window->isCurrentlyDisplayedInFrame()) | 91 if (!m_window->isCurrentlyDisplayedInFrame()) |
92 return nullptr; | 92 return nullptr; |
93 | 93 |
94 if (!m_idbFactory) | 94 if (!m_idbFactory) |
95 m_idbFactory = IDBFactory::create(IndexedDBClient::create()); | 95 m_idbFactory = IDBFactory::create(); |
96 return m_idbFactory.get(); | 96 return m_idbFactory.get(); |
97 } | 97 } |
98 | 98 |
99 } // namespace blink | 99 } // namespace blink |
OLD | NEW |