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

Side by Side Diff: public/platform/WebCredential.h

Issue 573663002: Credential Manager: Wire up the client. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Oops. Created 6 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebCredential_h 5 #ifndef WebCredential_h
6 #define WebCredential_h 6 #define WebCredential_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebPrivatePtr.h" 9 #include "public/platform/WebPrivatePtr.h"
10 #include "public/platform/WebString.h" 10 #include "public/platform/WebString.h"
11 #include "public/platform/WebURL.h" 11 #include "public/platform/WebURL.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class PlatformCredential; 15 class PlatformCredential;
16 16
17 class WebCredential { 17 class WebCredential {
18 public: 18 public:
19 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na me, const WebURL& avatarURL); 19 BLINK_PLATFORM_EXPORT WebCredential(const WebString& id, const WebString& na me, const WebURL& avatarURL);
20 ~WebCredential() { reset(); } 20 ~WebCredential() { reset(); }
21 21
22 BLINK_PLATFORM_EXPORT void assign(const WebCredential&); 22 BLINK_PLATFORM_EXPORT void assign(const WebCredential&);
23 BLINK_PLATFORM_EXPORT void reset(); 23 BLINK_PLATFORM_EXPORT void reset();
24 24
25 BLINK_PLATFORM_EXPORT WebString id() const; 25 BLINK_PLATFORM_EXPORT WebString id() const;
26 BLINK_PLATFORM_EXPORT WebString name() const; 26 BLINK_PLATFORM_EXPORT WebString name() const;
27 BLINK_PLATFORM_EXPORT WebURL avatarURL() const; 27 BLINK_PLATFORM_EXPORT WebURL avatarURL() const;
28 28
29 #if INSIDE_BLINK
30 BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*);
31 BLINK_PLATFORM_EXPORT WebCredential& operator=(PlatformCredential*);
tkent 2014/09/16 00:02:18 nit: |explicit WebCredential()| above and this ope
32 BLINK_PLATFORM_EXPORT operator PlatformCredential*() const;
33 #endif
34
29 protected: 35 protected:
30 BLINK_PLATFORM_EXPORT explicit WebCredential(PlatformCredential*);
31 WebPrivatePtr<PlatformCredential> m_platformCredential; 36 WebPrivatePtr<PlatformCredential> m_platformCredential;
32 }; 37 };
33 38
34 } // namespace blink 39 } // namespace blink
35 40
36 #endif // WebCredential_h 41 #endif // WebCredential_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698