Chromium Code Reviews| 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 WebCredential_h | |
| 6 #define WebCredential_h | |
| 7 | |
| 8 #include "WebCommon.h" | |
| 9 #include "WebPrivatePtr.h" | |
| 10 #include "WebString.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 class PlatformCredential; | |
|
sof
2014/08/10 05:54:57
nit: move this into the namespace block below?
Mike West
2014/08/11 07:56:49
Done.
| |
| 14 } | |
| 15 | |
| 16 namespace blink { | |
| 17 | |
| 18 class WebCredential { | |
| 19 public: | |
| 20 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na me, const WebString& avatarURL); | |
| 21 ~WebCredential() { reset(); } | |
| 22 | |
| 23 BLINK_PLATFORM_EXPORT void assign(const WebCredential&); | |
| 24 BLINK_PLATFORM_EXPORT void reset(); | |
| 25 | |
| 26 BLINK_PLATFORM_EXPORT WebString id() const; | |
| 27 BLINK_PLATFORM_EXPORT WebString name() const; | |
| 28 BLINK_PLATFORM_EXPORT WebString avatarURL() const; | |
| 29 | |
| 30 protected: | |
| 31 BLINK_PLATFORM_EXPORT WebCredential(PlatformCredential*); | |
| 32 WebPrivatePtr<PlatformCredential> m_private; | |
| 33 }; | |
| 34 | |
| 35 } // namespace blink | |
| 36 | |
| 37 #endif // WebCredential_h | |
| OLD | NEW |