| Index: public/platform/WebCredential.h
|
| diff --git a/public/platform/WebCredential.h b/public/platform/WebCredential.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..500131daa5136c306bf62ba23bf9bc729ad4a603
|
| --- /dev/null
|
| +++ b/public/platform/WebCredential.h
|
| @@ -0,0 +1,35 @@
|
| +// 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 WebCredential_h
|
| +#define WebCredential_h
|
| +
|
| +#include "WebCommon.h"
|
| +#include "WebPrivatePtr.h"
|
| +#include "WebString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class PlatformCredential;
|
| +
|
| +class WebCredential {
|
| +public:
|
| + BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& name, const WebString& avatarURL);
|
| + ~WebCredential() { reset(); }
|
| +
|
| + BLINK_PLATFORM_EXPORT void assign(const WebCredential&);
|
| + BLINK_PLATFORM_EXPORT void reset();
|
| +
|
| + BLINK_PLATFORM_EXPORT WebString id() const;
|
| + BLINK_PLATFORM_EXPORT WebString name() const;
|
| + BLINK_PLATFORM_EXPORT WebString avatarURL() const;
|
| +
|
| +protected:
|
| + BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*);
|
| + WebPrivatePtr<PlatformCredential> m_platformCredential;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WebCredential_h
|
|
|