blob: 7f4494c8a4dad2675d6fd3f76cadcb6929c0151d [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 WebLocalCredential_h
#define WebLocalCredential_h
#include "public/platform/WebCommon.h"
#include "public/platform/WebCredential.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
namespace blink {
class WebLocalCredential : public WebCredential {
public:
BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL);
// FIXME: Throw this away once it's unused on the Chromium side.
BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebString& name, const WebURL& avatarURL, const WebString& password);
BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&);
BLINK_PLATFORM_EXPORT WebString password() const;
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*);
BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*);
#endif
};
} // namespace blink
#endif // WebLocalCredential_h