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

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

Issue 651503002: Clean up forward declarations in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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"
10 #include "platform/credentialmanager/PlatformCredential.h" 9 #include "platform/credentialmanager/PlatformCredential.h"
11 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
12 #include "platform/weborigin/KURL.h" 11 #include "platform/weborigin/KURL.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 class WebCredential;
17 class ExceptionState; 15 class ExceptionState;
18 16
19 class Credential : public GarbageCollected<Credential>, public ScriptWrappable { 17 class Credential : public GarbageCollected<Credential>, public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
21 public: 19 public:
22 static Credential* create(const String& id, const String& name, const KURL& avatar); 20 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&); 21 static Credential* create(const String& id, const String& name, const String & avatar, ExceptionState&);
24 22
25 // Credential.idl 23 // Credential.idl
26 const String& id() const { return m_platformCredential->id(); } 24 const String& id() const { return m_platformCredential->id(); }
(...skipping 10 matching lines...) Expand all
37 35
38 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced. 36 // Parses a string as a KURL. Throws an exception via |exceptionState| if an invalid URL is produced.
39 static KURL parseStringAsURL(const String&, ExceptionState&); 37 static KURL parseStringAsURL(const String&, ExceptionState&);
40 38
41 Member<PlatformCredential> m_platformCredential; 39 Member<PlatformCredential> m_platformCredential;
42 }; 40 };
43 41
44 } // namespace blink 42 } // namespace blink
45 43
46 #endif // Credential_h 44 #endif // Credential_h
OLDNEW
« no previous file with comments | « Source/modules/EventTargetModules.h ('k') | Source/modules/credentialmanager/CredentialManagerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698