| 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 FederatedCredential_h | 5 #ifndef FederatedCredential_h |
| 6 #define FederatedCredential_h | 6 #define FederatedCredential_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "bindings/core/v8/SerializedScriptValue.h" | 9 #include "bindings/core/v8/SerializedScriptValue.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 DEFINE_WRAPPERTYPEINFO(); | 21 DEFINE_WRAPPERTYPEINFO(); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 static FederatedCredential* create(const FederatedCredentialData&, | 24 static FederatedCredential* create(const FederatedCredentialData&, |
| 25 ExceptionState&); | 25 ExceptionState&); |
| 26 static FederatedCredential* create(WebFederatedCredential*); | 26 static FederatedCredential* create(WebFederatedCredential*); |
| 27 | 27 |
| 28 // FederatedCredential.idl | 28 // FederatedCredential.idl |
| 29 const String provider() const; | 29 const String provider() const; |
| 30 | 30 |
| 31 // TODO(mkwst): This is a stub, as we don't yet have any support on the Chromi
um-side. | 31 // TODO(mkwst): This is a stub, as we don't yet have any support on the |
| 32 // Chromium-side. |
| 32 const String& protocol() const { return emptyString(); } | 33 const String& protocol() const { return emptyString(); } |
| 33 | 34 |
| 34 private: | 35 private: |
| 35 FederatedCredential(WebFederatedCredential*); | 36 FederatedCredential(WebFederatedCredential*); |
| 36 FederatedCredential(const String& id, | 37 FederatedCredential(const String& id, |
| 37 const KURL& provider, | 38 const KURL& provider, |
| 38 const String& name, | 39 const String& name, |
| 39 const KURL& icon); | 40 const KURL& icon); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace blink | 43 } // namespace blink |
| 43 | 44 |
| 44 #endif // FederatedCredential_h | 45 #endif // FederatedCredential_h |
| OLD | NEW |