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 WebLocalCredential_h
6 #define WebLocalCredential_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"
15 class PlatformLocalCredential;
17 class WebLocalCredential : public WebCredential {
19 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL);
21 // FIXME: Throw this away once it's unused on the Chromium side.
22 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebString& name, const WebURL& avatarURL, const WebString& password);
24 BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&);
26 BLINK_PLATFORM_EXPORT WebString password() const;
29 BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*);
30 BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*);
36 #endif // WebLocalCredential_h