Chromium Code Reviews| Index: Source/modules/credentialmanager/Credential.h |
| diff --git a/Source/modules/credentialmanager/Credential.h b/Source/modules/credentialmanager/Credential.h |
| index 38889e5797a72b9a3ab73c473ef1541c49f4c166..aaffcd9d83a7c7e4dbe86753d00591e2dfc39343 100644 |
| --- a/Source/modules/credentialmanager/Credential.h |
| +++ b/Source/modules/credentialmanager/Credential.h |
| @@ -7,29 +7,30 @@ |
| #include "bindings/core/v8/ScriptWrappable.h" |
| #include "bindings/core/v8/SerializedScriptValue.h" |
| +#include "platform/credentialmanager/PlatformCredential.h" |
| #include "platform/heap/Handle.h" |
| namespace blink { |
| +class WebCredential; |
| + |
| class Credential : public GarbageCollectedFinalized<Credential>, public ScriptWrappable { |
|
sof
2014/08/10 05:54:57
This base class no longer needs to be finalized (w
Mike West
2014/08/10 11:39:52
In the future, I don't expect Credential to change
sof
2014/08/10 13:14:15
Assuming FormData isn't turned into a GCed object
|
| public: |
| static Credential* create(const String& id, const String& name, const String& avatarURL); |
| virtual ~Credential(); |
| // Credential.idl |
| - const String& id() const { return m_id; } |
| - const String& name() const { return m_name; } |
| - const String& avatarURL() const { return m_avatarURL; } |
| + const String& id() const { return m_private->id(); } |
| + const String& name() const { return m_private->name(); } |
| + const String& avatarURL() const { return m_private->avatarURL(); } |
| - virtual void trace(Visitor*) { }; |
| + virtual void trace(Visitor*); |
| protected: |
| + Credential(PlatformCredential*); |
|
sof
2014/08/10 05:54:57
Perhaps you want an implicit conversion, but if no
Mike West
2014/08/11 07:56:49
Done.
|
| Credential(const String& id, const String& name, const String& avatarURL); |
| -private: |
| - String m_id; |
| - String m_name; |
| - String m_avatarURL; |
| + Member<PlatformCredential> m_private; |
|
sof
2014/08/10 05:54:57
Possible to come up with a better name?
Mike West
2014/08/11 07:56:49
Done.
|
| }; |
| } // namespace blink |