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

Side by Side Diff: Source/modules/credentialmanager/Credential.h

Issue 573663002: Credential Manager: Wire up the client. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Null check. 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 Credential_h 5 #ifndef Credential_h
6 #define Credential_h 6 #define Credential_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/core/v8/SerializedScriptValue.h" 9 #include "bindings/core/v8/SerializedScriptValue.h"
10 #include "platform/credentialmanager/PlatformCredential.h" 10 #include "platform/credentialmanager/PlatformCredential.h"
(...skipping 11 matching lines...) Expand all
22 static Credential* create(const String& id, const String& name, const KURL& avatar); 22 static Credential* create(const String& id, const String& name, const KURL& avatar);
23 static Credential* create(const String& id, const String& name, const String & avatar, ExceptionState&); 23 static Credential* create(const String& id, const String& name, const String & avatar, ExceptionState&);
24 24
25 // Credential.idl 25 // Credential.idl
26 const String& id() const { return m_platformCredential->id(); } 26 const String& id() const { return m_platformCredential->id(); }
27 const String& name() const { return m_platformCredential->name(); } 27 const String& name() const { return m_platformCredential->name(); }
28 const KURL& avatarURL() const { return m_platformCredential->avatarURL(); } 28 const KURL& avatarURL() const { return m_platformCredential->avatarURL(); }
29 29
30 virtual void trace(Visitor*); 30 virtual void trace(Visitor*);
31 31
32 PlatformCredential* platformCredential() const { return m_platformCredential ; }
33
32 protected: 34 protected:
33 explicit Credential(PlatformCredential*); 35 Credential(PlatformCredential*);
34 Credential(const String& id, const String& name, const KURL& avatar); 36 Credential(const String& id, const String& name, const KURL& avatar);
35 37
36 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced. 38 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced.
37 static KURL parseStringAsURL(const String&, ExceptionState&); 39 static KURL parseStringAsURL(const String&, ExceptionState&);
38 40
39 Member<PlatformCredential> m_platformCredential; 41 Member<PlatformCredential> m_platformCredential;
40 }; 42 };
41 43
42 } // namespace blink 44 } // namespace blink
43 45
44 #endif // Credential_h 46 #endif // Credential_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698