| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "modules/quota/StorageManager.h" | 5 #include "modules/quota/StorageManager.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 7 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 8 #include "bindings/modules/v8/V8StorageEstimate.h" | 8 #include "bindings/modules/v8/V8StorageEstimate.h" |
| 9 #include "core/dom/DOMException.h" | 9 #include "core/dom/DOMException.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 wrapWeakPersistent(this)))); | 148 wrapWeakPersistent(this)))); |
| 149 return m_permissionService.get(); | 149 return m_permissionService.get(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void StorageManager::permissionServiceConnectionError() { | 152 void StorageManager::permissionServiceConnectionError() { |
| 153 m_permissionService.reset(); | 153 m_permissionService.reset(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 void StorageManager::permissionRequestComplete(ScriptPromiseResolver* resolver, | 156 void StorageManager::permissionRequestComplete(ScriptPromiseResolver* resolver, |
| 157 PermissionStatus status) { | 157 PermissionStatus status) { |
| 158 if (!resolver->getExecutionContext() || | 158 if (!resolver->getExecutionContext()) |
| 159 resolver->getExecutionContext()->activeDOMObjectsAreStopped()) | |
| 160 return; | 159 return; |
| 161 resolver->resolve(status == PermissionStatus::GRANTED); | 160 resolver->resolve(status == PermissionStatus::GRANTED); |
| 162 } | 161 } |
| 163 | 162 |
| 164 } // namespace blink | 163 } // namespace blink |
| OLD | NEW |