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

Side by Side 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: Feedback 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef WebCredential_h
6 #define WebCredential_h
7
8 #include "WebCommon.h"
9 #include "WebPrivatePtr.h"
10 #include "WebString.h"
11
12 namespace blink {
13
14 class PlatformCredential;
15
16 class WebCredential {
17 public:
18 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na me, const WebString& avatarURL);
19 ~WebCredential() { reset(); }
20
21 BLINK_PLATFORM_EXPORT void assign(const WebCredential&);
22 BLINK_PLATFORM_EXPORT void reset();
23
24 BLINK_PLATFORM_EXPORT WebString id() const;
25 BLINK_PLATFORM_EXPORT WebString name() const;
26 BLINK_PLATFORM_EXPORT WebString avatarURL() const;
27
28 protected:
29 BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*);
30 WebPrivatePtr<PlatformCredential> m_platformCredential;
31 };
32
33 } // namespace blink
34
35 #endif // WebCredential_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebLocalCredential.cpp ('k') | public/platform/WebFederatedCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698