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 WebFederatedCredential_h | 5 #ifndef WebFederatedCredential_h |
6 #define WebFederatedCredential_h | 6 #define WebFederatedCredential_h |
7 | 7 |
8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "public/platform/WebCredential.h" | 9 #include "public/platform/WebCredential.h" |
10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" |
11 #include "public/platform/WebURL.h" | 11 #include "public/platform/WebURL.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class WebFederatedCredential : public WebCredential { | 15 class WebFederatedCredential : public WebCredential { |
16 public: | 16 public: |
17 BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebU
RL& federation, const WebString& name, const WebURL& avatarURL); | 17 BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebU
RL& federation, const WebString& name, const WebURL& avatarURL); |
18 | 18 |
19 // FIXME: Throw this away once it's unused on the chromium side. | 19 BLINK_PLATFORM_EXPORT void assign(const WebFederatedCredential&); |
20 BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebS
tring& name, const WebURL& avatarURL, const WebURL& federation); | 20 BLINK_PLATFORM_EXPORT WebURL provider() const; |
21 | 21 |
22 BLINK_PLATFORM_EXPORT void assign(const WebFederatedCredential&); | 22 // FIXME: Throw this away once it's unused on the Chromium side: https://crb
ug.com/494880 |
23 | 23 BLINK_PLATFORM_EXPORT WebURL federation() const { return provider(); } |
24 BLINK_PLATFORM_EXPORT WebURL federation() const; | |
25 | 24 |
26 #if INSIDE_BLINK | 25 #if INSIDE_BLINK |
27 BLINK_PLATFORM_EXPORT WebFederatedCredential(PlatformCredential*); | 26 BLINK_PLATFORM_EXPORT WebFederatedCredential(PlatformCredential*); |
28 BLINK_PLATFORM_EXPORT WebFederatedCredential& operator=(PlatformCredential*)
; | 27 BLINK_PLATFORM_EXPORT WebFederatedCredential& operator=(PlatformCredential*)
; |
29 #endif | 28 #endif |
30 }; | 29 }; |
31 | 30 |
32 } // namespace blink | 31 } // namespace blink |
33 | 32 |
34 #endif // WebFederatedCredential_h | 33 #endif // WebFederatedCredential_h |
35 | 34 |
36 | 35 |
OLD | NEW |