Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "modules/credentialmanager/CredentialsContainer.h" 5 #include "modules/credentialmanager/CredentialsContainer.h"
6 6
7 #include <memory>
7 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
8 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/DOMException.h" 11 #include "core/dom/DOMException.h"
11 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
12 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
13 #include "core/dom/ExecutionContext.h" 14 #include "core/dom/ExecutionContext.h"
14 #include "core/frame/Frame.h" 15 #include "core/frame/Frame.h"
15 #include "core/frame/UseCounter.h" 16 #include "core/frame/UseCounter.h"
16 #include "core/page/FrameTree.h" 17 #include "core/page/FrameTree.h"
17 #include "modules/credentialmanager/Credential.h" 18 #include "modules/credentialmanager/Credential.h"
18 #include "modules/credentialmanager/CredentialManagerClient.h" 19 #include "modules/credentialmanager/CredentialManagerClient.h"
19 #include "modules/credentialmanager/CredentialRequestOptions.h" 20 #include "modules/credentialmanager/CredentialRequestOptions.h"
20 #include "modules/credentialmanager/FederatedCredential.h" 21 #include "modules/credentialmanager/FederatedCredential.h"
21 #include "modules/credentialmanager/FederatedCredentialRequestOptions.h" 22 #include "modules/credentialmanager/FederatedCredentialRequestOptions.h"
22 #include "modules/credentialmanager/PasswordCredential.h" 23 #include "modules/credentialmanager/PasswordCredential.h"
23 #include "platform/weborigin/SecurityOrigin.h" 24 #include "platform/weborigin/SecurityOrigin.h"
24 #include "public/platform/Platform.h" 25 #include "public/platform/Platform.h"
25 #include "public/platform/WebCredential.h" 26 #include "public/platform/WebCredential.h"
26 #include "public/platform/WebCredentialManagerClient.h" 27 #include "public/platform/WebCredentialManagerClient.h"
27 #include "public/platform/WebCredentialManagerError.h" 28 #include "public/platform/WebCredentialManagerError.h"
28 #include "public/platform/WebFederatedCredential.h" 29 #include "public/platform/WebFederatedCredential.h"
29 #include "public/platform/WebPasswordCredential.h" 30 #include "public/platform/WebPasswordCredential.h"
30 #include "wtf/PtrUtil.h" 31 #include "wtf/PtrUtil.h"
31 #include <memory>
32 32
33 namespace blink { 33 namespace blink {
34 34
35 static void rejectDueToCredentialManagerError( 35 static void rejectDueToCredentialManagerError(
36 ScriptPromiseResolver* resolver, 36 ScriptPromiseResolver* resolver,
37 WebCredentialManagerError reason) { 37 WebCredentialManagerError reason) {
38 switch (reason) { 38 switch (reason) {
39 case WebCredentialManagerDisabledError: 39 case WebCredentialManagerDisabledError:
40 resolver->reject(DOMException::create( 40 resolver->reject(DOMException::create(
41 InvalidStateError, "The credential manager is disabled.")); 41 InvalidStateError, "The credential manager is disabled."));
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ScriptPromise promise = resolver->promise(); 212 ScriptPromise promise = resolver->promise();
213 if (!checkBoilerplate(resolver)) 213 if (!checkBoilerplate(resolver))
214 return promise; 214 return promise;
215 215
216 CredentialManagerClient::from(scriptState->getExecutionContext()) 216 CredentialManagerClient::from(scriptState->getExecutionContext())
217 ->dispatchRequireUserMediation(new NotificationCallbacks(resolver)); 217 ->dispatchRequireUserMediation(new NotificationCallbacks(resolver));
218 return promise; 218 return promise;
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698