OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PlatformCredential_h |
| 6 #define PlatformCredential_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/text/WTFString.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class WebPlatformCredential; |
| 14 |
| 15 class PLATFORM_EXPORT PlatformCredential : public GarbageCollectedFinalized<Plat
formCredential> { |
| 16 WTF_MAKE_NONCOPYABLE(PlatformCredential); |
| 17 public: |
| 18 static PlatformCredential* create(const String& id, const String& name, cons
t String& avatarURL); |
| 19 virtual ~PlatformCredential(); |
| 20 |
| 21 const String& id() const { return m_id; } |
| 22 const String& name() const { return m_name; } |
| 23 const String& avatarURL() const { return m_avatarURL; } |
| 24 |
| 25 virtual void trace(Visitor*) { } |
| 26 |
| 27 protected: |
| 28 PlatformCredential(const String& id, const String& name, const String& avata
rURL); |
| 29 |
| 30 private: |
| 31 String m_id; |
| 32 String m_name; |
| 33 String m_avatarURL; |
| 34 }; |
| 35 |
| 36 } // namespace blink |
| 37 |
| 38 #endif // PlatformCredential_h |
OLD | NEW |