| 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 Credential_h | 5 #ifndef Credential_h |
| 6 #define Credential_h | 6 #define Credential_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 "platform/credentialmanager/PlatformCredential.h" | 10 #include "platform/credentialmanager/PlatformCredential.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 DECLARE_VIRTUAL_TRACE(); | 31 DECLARE_VIRTUAL_TRACE(); |
| 32 | 32 |
| 33 PlatformCredential* getPlatformCredential() const { | 33 PlatformCredential* getPlatformCredential() const { |
| 34 return m_platformCredential; | 34 return m_platformCredential; |
| 35 } | 35 } |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 Credential(PlatformCredential*); | 38 Credential(PlatformCredential*); |
| 39 Credential(const String& id, const String& name, const KURL& icon); | 39 Credential(const String& id, const String& name, const KURL& icon); |
| 40 | 40 |
| 41 // Parses a string as a KURL. Throws an exception via |exceptionState| if an i
nvalid URL is produced. | 41 // Parses a string as a KURL. Throws an exception via |exceptionState| if an |
| 42 // invalid URL is produced. |
| 42 static KURL parseStringAsURL(const String&, ExceptionState&); | 43 static KURL parseStringAsURL(const String&, ExceptionState&); |
| 43 | 44 |
| 44 Member<PlatformCredential> m_platformCredential; | 45 Member<PlatformCredential> m_platformCredential; |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace blink | 48 } // namespace blink |
| 48 | 49 |
| 49 #endif // Credential_h | 50 #endif // Credential_h |
| OLD | NEW |