Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebFederatedCredential.h
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 WebFederatedCredential_h
6 #define WebFederatedCredential_h
7
8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebCredential.h"
10 #include "public/platform/WebString.h"
11 #include "public/platform/WebURL.h"
12
13 namespace blink {
14
15 class PlatformFederatedCredential;
16
17 class WebFederatedCredential : public WebCredential {
18 public:
19     BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebURL& federation, const WebString& name, const WebURL& avatarURL);
20
21     // FIXME: Throw this away once it's unused on the chromium side.
22     BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebString& name, const WebURL& avatarURL, const WebURL& federation);
23
24     BLINK_PLATFORM_EXPORT void assign(const WebFederatedCredential&);
25
26     BLINK_PLATFORM_EXPORT WebURL federation() const;
27
28 #if INSIDE_BLINK
29     BLINK_PLATFORM_EXPORT WebFederatedCredential(PlatformCredential*);
30     BLINK_PLATFORM_EXPORT WebFederatedCredential& operator=(PlatformCredential*);
31 #endif
32 };
33
34 } // namespace blink
35
36 #endif // WebFederatedCredential_h
37
38