OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | |
6 #include "modules/credentialmanager/CredentialsContainer.h" | 5 #include "modules/credentialmanager/CredentialsContainer.h" |
7 | 6 |
8 #include "bindings/core/v8/Dictionary.h" | 7 #include "bindings/core/v8/Dictionary.h" |
9 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
10 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
11 #include "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
12 #include "core/dom/ExceptionCode.h" | 11 #include "core/dom/ExceptionCode.h" |
13 #include "core/dom/ExecutionContext.h" | 12 #include "core/dom/ExecutionContext.h" |
14 #include "core/frame/UseCounter.h" | 13 #include "core/frame/UseCounter.h" |
15 #include "modules/credentialmanager/Credential.h" | 14 #include "modules/credentialmanager/Credential.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState)
; | 157 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState)
; |
159 ScriptPromise promise = resolver->promise(); | 158 ScriptPromise promise = resolver->promise(); |
160 if (!checkBoilerplate(resolver)) | 159 if (!checkBoilerplate(resolver)) |
161 return promise; | 160 return promise; |
162 | 161 |
163 CredentialManagerClient::from(scriptState->executionContext())->dispatchRequ
ireUserMediation(new NotificationCallbacks(resolver)); | 162 CredentialManagerClient::from(scriptState->executionContext())->dispatchRequ
ireUserMediation(new NotificationCallbacks(resolver)); |
164 return promise; | 163 return promise; |
165 } | 164 } |
166 | 165 |
167 } // namespace blink | 166 } // namespace blink |
OLD | NEW |