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 PlatformCredential_h |
6 #define Credential_h | 6 #define PlatformCredential_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | |
9 #include "bindings/core/v8/SerializedScriptValue.h" | |
10 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "wtf/text/WTFString.h" | |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class Credential : public GarbageCollectedFinalized<Credential>, public ScriptWr appable { | 13 class WebPlatformCredential; |
14 | |
15 class PLATFORM_EXPORT PlatformCredential : public GarbageCollectedFinalized<Plat formCredential> { | |
16 WTF_MAKE_NONCOPYABLE(PlatformCredential); | |
15 public: | 17 public: |
16 static Credential* create(const String& id, const String& name, const String & avatarURL); | 18 static PlatformCredential* create(const String& id, const String& name, cons t String& avatarURL); |
17 virtual ~Credential(); | 19 virtual ~PlatformCredential(); |
18 | 20 |
19 // Credential.idl | |
20 const String& id() const { return m_id; } | 21 const String& id() const { return m_id; } |
21 const String& name() const { return m_name; } | 22 const String& name() const { return m_name; } |
22 const String& avatarURL() const { return m_avatarURL; } | 23 const String& avatarURL() const { return m_avatarURL; } |
23 | 24 |
24 virtual void trace(Visitor*) { }; | 25 virtual void trace(Visitor*) { }; |
sof
2014/08/10 05:54:57
nit: stray semi.
Mike West
2014/08/11 07:56:49
Done.
| |
25 | 26 |
26 protected: | 27 protected: |
27 Credential(const String& id, const String& name, const String& avatarURL); | 28 PlatformCredential(const String& id, const String& name, const String& avata rURL); |
28 | 29 |
29 private: | 30 private: |
30 String m_id; | 31 String m_id; |
31 String m_name; | 32 String m_name; |
32 String m_avatarURL; | 33 String m_avatarURL; |
33 }; | 34 }; |
34 | 35 |
35 } // namespace blink | 36 } // namespace blink |
36 | 37 |
37 #endif // Credential_h | 38 #endif // PlatformCredential_h |
OLD | NEW |