Index: public/platform/WebCredential.h |
diff --git a/public/platform/WebCredential.h b/public/platform/WebCredential.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..57eca47acd456693bb79839e6b323580c3c6b926 |
--- /dev/null |
+++ b/public/platform/WebCredential.h |
@@ -0,0 +1,37 @@ |
+// 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; |
sof
2014/08/10 05:54:57
nit: move this into the namespace block below?
Mike West
2014/08/11 07:56:49
Done.
|
+} |
+ |
+namespace blink { |
+ |
+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 WebCredential(PlatformCredential*); |
+ WebPrivatePtr<PlatformCredential> m_private; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebCredential_h |