Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebFederatedCredential.h
blob45181e8189cb32dda51e80b0b1efa6031124f5bf
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.
5 #ifndef WebFederatedCredential_h
6 #define WebFederatedCredential_h
8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebCredential.h"
10 #include "public/platform/WebString.h"
11 #include "public/platform/WebURL.h"
13 namespace blink {
15 class WebFederatedCredential : public WebCredential {
16 public:
17 BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebURL& federation, const WebString& name, const WebURL& iconURL);
19 BLINK_PLATFORM_EXPORT void assign(const WebFederatedCredential&);
20 BLINK_PLATFORM_EXPORT WebURL provider() const;
22 // FIXME: Throw this away once it's unused on the Chromium side: https://crbug.com/494880
23 BLINK_PLATFORM_EXPORT WebURL federation() const { return provider(); }
25 #if INSIDE_BLINK
26 BLINK_PLATFORM_EXPORT WebFederatedCredential(PlatformCredential*);
27 BLINK_PLATFORM_EXPORT WebFederatedCredential& operator=(PlatformCredential*);
28 #endif
31 } // namespace blink
33 #endif // WebFederatedCredential_h