blob: 45181e8189cb32dda51e80b0b1efa6031124f5bf [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WebFederatedCredential_h
#define WebFederatedCredential_h
#include "public/platform/WebCommon.h"
#include "public/platform/WebCredential.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
namespace blink {
class WebFederatedCredential : public WebCredential {
public:
BLINK_PLATFORM_EXPORT WebFederatedCredential(const WebString& id, const WebURL& federation, const WebString& name, const WebURL& iconURL);
BLINK_PLATFORM_EXPORT void assign(const WebFederatedCredential&);
BLINK_PLATFORM_EXPORT WebURL provider() const;
// FIXME: Throw this away once it's unused on the Chromium side: https://crbug.com/494880
BLINK_PLATFORM_EXPORT WebURL federation() const { return provider(); }
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebFederatedCredential(PlatformCredential*);
BLINK_PLATFORM_EXPORT WebFederatedCredential& operator=(PlatformCredential*);
#endif
};
} // namespace blink
#endif // WebFederatedCredential_h