OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SiteBoundCredential_h | 5 #ifndef CredentialUserData_h |
6 #define SiteBoundCredential_h | 6 #define CredentialUserData_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "modules/credentialmanager/Credential.h" | 10 #include "modules/credentialmanager/Credential.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class MODULES_EXPORT SiteBoundCredential : public Credential { | 15 class MODULES_EXPORT CredentialUserData : public Credential { |
16 DEFINE_WRAPPERTYPEINFO(); | 16 DEFINE_WRAPPERTYPEINFO(); |
17 | 17 |
18 public: | 18 public: |
19 // SiteBoundCredential.idl | 19 // CredentialUserData.idl |
20 const String& name() const { return platform_credential_->GetName(); } | 20 const String& name() const { return platform_credential_->GetName(); } |
21 const KURL& iconURL() const { return platform_credential_->GetIconURL(); } | 21 const KURL& iconURL() const { return platform_credential_->GetIconURL(); } |
22 | 22 |
23 protected: | 23 protected: |
24 SiteBoundCredential(PlatformCredential*); | 24 CredentialUserData(PlatformCredential*); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace blink | 27 } // namespace blink |
28 | 28 |
29 #endif // SiteBoundCredential_h | 29 #endif // CredentialUserData_h |
OLD | NEW |