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 WebCredential_h | 5 #ifndef WebCredential_h |
6 #define WebCredential_h | 6 #define WebCredential_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "WebPrivatePtr.h" | 9 #include "public/platform/WebPrivatePtr.h" |
10 #include "WebString.h" | 10 #include "public/platform/WebString.h" |
| 11 #include "public/platform/WebURL.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 class PlatformCredential; | 15 class PlatformCredential; |
15 | 16 |
16 class WebCredential { | 17 class WebCredential { |
17 public: | 18 public: |
18 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na
me, const WebString& avatarURL); | 19 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na
me, const WebURL& avatarURL); |
19 ~WebCredential() { reset(); } | 20 ~WebCredential() { reset(); } |
20 | 21 |
21 BLINK_PLATFORM_EXPORT void assign(const WebCredential&); | 22 BLINK_PLATFORM_EXPORT void assign(const WebCredential&); |
22 BLINK_PLATFORM_EXPORT void reset(); | 23 BLINK_PLATFORM_EXPORT void reset(); |
23 | 24 |
24 BLINK_PLATFORM_EXPORT WebString id() const; | 25 BLINK_PLATFORM_EXPORT WebString id() const; |
25 BLINK_PLATFORM_EXPORT WebString name() const; | 26 BLINK_PLATFORM_EXPORT WebString name() const; |
26 BLINK_PLATFORM_EXPORT WebString avatarURL() const; | 27 BLINK_PLATFORM_EXPORT WebURL avatarURL() const; |
27 | 28 |
28 protected: | 29 protected: |
29 BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*); | 30 BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*); |
30 WebPrivatePtr<PlatformCredential> m_platformCredential; | 31 WebPrivatePtr<PlatformCredential> m_platformCredential; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace blink | 34 } // namespace blink |
34 | 35 |
35 #endif // WebCredential_h | 36 #endif // WebCredential_h |
OLD | NEW |