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

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: 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 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 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.
14 }
15
16 namespace blink {
17
18 class WebCredential {
19 public:
20 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na me, const WebString& avatarURL);
21 ~WebCredential() { reset(); }
22
23 BLINK_PLATFORM_EXPORT void assign(const WebCredential&);
24 BLINK_PLATFORM_EXPORT void reset();
25
26 BLINK_PLATFORM_EXPORT WebString id() const;
27 BLINK_PLATFORM_EXPORT WebString name() const;
28 BLINK_PLATFORM_EXPORT WebString avatarURL() const;
29
30 protected:
31 BLINK_PLATFORM_EXPORT WebCredential(PlatformCredential*);
32 WebPrivatePtr<PlatformCredential> m_private;
33 };
34
35 } // namespace blink
36
37 #endif // WebCredential_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698