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 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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 BLINK_PLATFORM_EXPORT bool isPasswordCredential() const; | 31 BLINK_PLATFORM_EXPORT bool isPasswordCredential() const; |
32 BLINK_PLATFORM_EXPORT bool isFederatedCredential() const; | 32 BLINK_PLATFORM_EXPORT bool isFederatedCredential() const; |
33 | 33 |
34 // TODO(mkwst): Drop this once Chromium is updated. https://crbug.com/494880 | 34 // TODO(mkwst): Drop this once Chromium is updated. https://crbug.com/494880 |
35 BLINK_PLATFORM_EXPORT bool isLocalCredential() const { return isPasswordCred
ential(); } | 35 BLINK_PLATFORM_EXPORT bool isLocalCredential() const { return isPasswordCred
ential(); } |
36 | 36 |
37 #if INSIDE_BLINK | 37 #if INSIDE_BLINK |
38 BLINK_PLATFORM_EXPORT static WebCredential create(PlatformCredential*); | 38 BLINK_PLATFORM_EXPORT static WebCredential create(PlatformCredential*); |
39 BLINK_PLATFORM_EXPORT WebCredential& operator=(PlatformCredential*); | 39 BLINK_PLATFORM_EXPORT WebCredential& operator=(PlatformCredential*); |
40 BLINK_PLATFORM_EXPORT PlatformCredential* platformCredential() const { retur
n m_platformCredential.get(); } | 40 BLINK_PLATFORM_EXPORT PlatformCredential* getPlatformCredential() const { re
turn m_platformCredential.get(); } |
41 #endif | 41 #endif |
42 | 42 |
43 protected: | 43 protected: |
44 #if INSIDE_BLINK | 44 #if INSIDE_BLINK |
45 BLINK_PLATFORM_EXPORT WebCredential(PlatformCredential*); | 45 BLINK_PLATFORM_EXPORT WebCredential(PlatformCredential*); |
46 #endif | 46 #endif |
47 | 47 |
48 WebPrivatePtr<PlatformCredential> m_platformCredential; | 48 WebPrivatePtr<PlatformCredential> m_platformCredential; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // WebCredential_h | 53 #endif // WebCredential_h |
OLD | NEW |