Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: public/platform/WebCredential.h

Issue 457683002: Credential Manager: Add platform-exposed Credential objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Strings. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698