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 "core/page/Page.h" | 8 #include "core/page/Page.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
11 #include "public/platform/WebCredentialManagerClient.h" | 11 #include "public/platform/WebCredentialManagerClient.h" |
12 #include "public/platform/WebVector.h" | 12 #include "public/platform/WebVector.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class ExecutionContext; | 16 class ExecutionContext; |
17 class Page; | 17 class Page; |
18 class WebCredential; | 18 class WebCredential; |
19 class WebURL; | 19 class WebURL; |
20 | 20 |
21 // CredentialManagerClient lives as a supplement to Page, and wraps the embedder
-provided | 21 // CredentialManagerClient lives as a supplement to Page, and wraps the |
22 // WebCredentialManagerClient's methods to make them visible to the bindings cod
e. | 22 // embedder-provided WebCredentialManagerClient's methods to make them visible |
| 23 // to the bindings code. |
23 class MODULES_EXPORT CredentialManagerClient final | 24 class MODULES_EXPORT CredentialManagerClient final |
24 : public GarbageCollectedFinalized<CredentialManagerClient>, | 25 : public GarbageCollectedFinalized<CredentialManagerClient>, |
25 public Supplement<Page> { | 26 public Supplement<Page> { |
26 USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient); | 27 USING_GARBAGE_COLLECTED_MIXIN(CredentialManagerClient); |
27 | 28 |
28 public: | 29 public: |
29 explicit CredentialManagerClient(WebCredentialManagerClient*); | 30 explicit CredentialManagerClient(WebCredentialManagerClient*); |
30 virtual ~CredentialManagerClient(); | 31 virtual ~CredentialManagerClient(); |
31 DECLARE_VIRTUAL_TRACE(); | 32 DECLARE_VIRTUAL_TRACE(); |
32 | 33 |
(...skipping 19 matching lines...) Expand all Loading... |
52 private: | 53 private: |
53 WebCredentialManagerClient* m_client; | 54 WebCredentialManagerClient* m_client; |
54 }; | 55 }; |
55 | 56 |
56 MODULES_EXPORT void provideCredentialManagerClientTo(Page&, | 57 MODULES_EXPORT void provideCredentialManagerClientTo(Page&, |
57 CredentialManagerClient*); | 58 CredentialManagerClient*); |
58 | 59 |
59 } // namespace blink | 60 } // namespace blink |
60 | 61 |
61 #endif // CredentialManagerClient_h | 62 #endif // CredentialManagerClient_h |
OLD | NEW |