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" | 5 #include "config.h" |
6 #include "modules/credentialmanager/CredentialManagerClient.h" | 6 #include "modules/credentialmanager/CredentialManagerClient.h" |
7 | 7 |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
11 #include "core/page/Page.h" | 11 #include "core/page/Page.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 CredentialManagerClient::CredentialManagerClient(WebCredentialManagerClient* cli
ent) | 15 CredentialManagerClient::CredentialManagerClient(WebCredentialManagerClient* cli
ent) |
16 : m_client(client) | 16 : m_client(client) |
17 { | 17 { |
18 } | 18 } |
19 | 19 |
20 CredentialManagerClient::~CredentialManagerClient() | 20 CredentialManagerClient::~CredentialManagerClient() |
21 { | 21 { |
22 } | 22 } |
23 | 23 |
| 24 void CredentialManagerClient::trace(Visitor* visitor) |
| 25 { |
| 26 WillBeHeapSupplement<Page>::trace(visitor); |
| 27 } |
| 28 |
24 // static | 29 // static |
25 const char* CredentialManagerClient::supplementName() | 30 const char* CredentialManagerClient::supplementName() |
26 { | 31 { |
27 return "CredentialManagerClient"; | 32 return "CredentialManagerClient"; |
28 } | 33 } |
29 | 34 |
30 // static | 35 // static |
31 CredentialManagerClient* CredentialManagerClient::from(ExecutionContext* executi
onContext) | 36 CredentialManagerClient* CredentialManagerClient::from(ExecutionContext* executi
onContext) |
32 { | 37 { |
33 if (!executionContext->isDocument() || !toDocument(executionContext)->page()
) | 38 if (!executionContext->isDocument() || !toDocument(executionContext)->page()
) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 73 } |
69 | 74 |
70 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) | 75 void CredentialManagerClient::dispatchRequest(bool zeroClickOnly, const WebVecto
r<WebURL>& federations, WebCredentialManagerClient::RequestCallbacks* callbacks) |
71 { | 76 { |
72 if (!m_client) | 77 if (!m_client) |
73 return; | 78 return; |
74 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); | 79 m_client->dispatchRequest(zeroClickOnly, federations, callbacks); |
75 } | 80 } |
76 | 81 |
77 } // namespace blink | 82 } // namespace blink |
OLD | NEW |