OLD | NEW |
---|---|
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" | |
10 #include "platform/credentialmanager/PlatformCredential.h" | 9 #include "platform/credentialmanager/PlatformCredential.h" |
11 #include "platform/heap/Handle.h" | |
Mike West
2014/10/11 10:53:05
Dropping Handle.h here seems wrong; the class is G
zhaoze.zhou
2014/10/13 16:51:00
Done.
| |
12 #include "platform/weborigin/KURL.h" | 10 #include "platform/weborigin/KURL.h" |
13 | 11 |
14 namespace blink { | 12 namespace blink { |
15 | 13 |
16 class WebCredential; | |
17 class ExceptionState; | 14 class ExceptionState; |
18 | 15 |
19 class Credential : public GarbageCollected<Credential>, public ScriptWrappable { | 16 class Credential : public GarbageCollected<Credential>, public ScriptWrappable { |
20 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
21 public: | 18 public: |
22 static Credential* create(const String& id, const String& name, const KURL& avatar); | 19 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&); | 20 static Credential* create(const String& id, const String& name, const String & avatar, ExceptionState&); |
24 | 21 |
25 // Credential.idl | 22 // Credential.idl |
26 const String& id() const { return m_platformCredential->id(); } | 23 const String& id() const { return m_platformCredential->id(); } |
(...skipping 10 matching lines...) Expand all Loading... | |
37 | 34 |
38 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced. | 35 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced. |
39 static KURL parseStringAsURL(const String&, ExceptionState&); | 36 static KURL parseStringAsURL(const String&, ExceptionState&); |
40 | 37 |
41 Member<PlatformCredential> m_platformCredential; | 38 Member<PlatformCredential> m_platformCredential; |
42 }; | 39 }; |
43 | 40 |
44 } // namespace blink | 41 } // namespace blink |
45 | 42 |
46 #endif // Credential_h | 43 #endif // Credential_h |
OLD | NEW |