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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 "platform/credentialmanager/PlatformCredential.h" 9 #include "platform/credentialmanager/PlatformCredential.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/weborigin/KURL.h" 11 #include "platform/weborigin/KURL.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ExceptionState; 15 class ExceptionState;
16 16
17 class Credential : public GarbageCollectedFinalized<Credential>, public ScriptWr appable { 17 class Credential : public GarbageCollectedFinalized<Credential>, public ScriptWr appable {
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 public: 19 public:
20 virtual ~Credential(); 20 virtual ~Credential();
21 21
22 // Credential.idl 22 // Credential.idl
23 const String& id() const { return m_platformCredential->id(); } 23 const String& id() const { return m_platformCredential->id(); }
24 const String& name() const { return m_platformCredential->name(); } 24 const String& name() const { return m_platformCredential->name(); }
25 const KURL& iconURL() const { return m_platformCredential->iconURL(); } 25 const KURL& iconURL() const { return m_platformCredential->iconURL(); }
26 const String& type() const { return m_platformCredential->type(); } 26 const String& type() const { return m_platformCredential->type(); }
27 27
28 DECLARE_VIRTUAL_TRACE(); 28 DECLARE_VIRTUAL_TRACE();
29 29
30 PlatformCredential* platformCredential() const { return m_platformCredential ; } 30 PlatformCredential* getPlatformCredential() const { return m_platformCredent ial; }
31 31
32 protected: 32 protected:
33 Credential(PlatformCredential*); 33 Credential(PlatformCredential*);
34 Credential(const String& id, const String& name, const KURL& icon); 34 Credential(const String& id, const String& name, const KURL& icon);
35 35
36 // 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.
37 static KURL parseStringAsURL(const String&, ExceptionState&); 37 static KURL parseStringAsURL(const String&, ExceptionState&);
38 38
39 Member<PlatformCredential> m_platformCredential; 39 Member<PlatformCredential> m_platformCredential;
40 }; 40 };
41 41
42 } // namespace blink 42 } // namespace blink
43 43
44 #endif // Credential_h 44 #endif // Credential_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698