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 #ifndef CredentialManagerClient_h | 5 #ifndef CredentialManagerClient_h |
6 #define CredentialManagerClient_h | 6 #define CredentialManagerClient_h |
7 | 7 |
8 #include "platform/Supplementable.h" | 8 #include "platform/Supplementable.h" |
9 #include "public/platform/WebCredentialManagerClient.h" | 9 #include "public/platform/WebCredentialManagerClient.h" |
10 #include "public/platform/WebVector.h" | 10 #include "public/platform/WebVector.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ExecutionContext; | 14 class ExecutionContext; |
15 class KURL; | |
16 class Page; | 15 class Page; |
17 class WebCredential; | 16 class WebCredential; |
18 class WebURL; | 17 class WebURL; |
19 | 18 |
20 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder
-provided | 19 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder
-provided |
21 // WebCredentialManagerClient's methods to make them visible to the bindings cod
e. | 20 // WebCredentialManagerClient's methods to make them visible to the bindings cod
e. |
22 class CredentialManagerClient final : public NoBaseWillBeGarbageCollectedFinaliz
ed<CredentialManagerClient>, public WillBeHeapSupplement<Page> { | 21 class CredentialManagerClient final : public NoBaseWillBeGarbageCollectedFinaliz
ed<CredentialManagerClient>, public WillBeHeapSupplement<Page> { |
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient); | 22 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient); |
24 public: | 23 public: |
25 explicit CredentialManagerClient(WebCredentialManagerClient*); | 24 explicit CredentialManagerClient(WebCredentialManagerClient*); |
(...skipping 12 matching lines...) Expand all Loading... |
38 | 37 |
39 private: | 38 private: |
40 WebCredentialManagerClient* m_client; | 39 WebCredentialManagerClient* m_client; |
41 }; | 40 }; |
42 | 41 |
43 void provideCredentialManagerClientTo(Page&, CredentialManagerClient*); | 42 void provideCredentialManagerClientTo(Page&, CredentialManagerClient*); |
44 | 43 |
45 } // namespace blink | 44 } // namespace blink |
46 | 45 |
47 #endif // CredentialManagerClient_h | 46 #endif // CredentialManagerClient_h |
OLD | NEW |