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 WebLocalCredential_h | 5 #ifndef WebLocalCredential_h |
6 #define WebLocalCredential_h | 6 #define WebLocalCredential_h |
7 | 7 |
8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "public/platform/WebCredential.h" | 9 #include "public/platform/WebCredential.h" |
10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" |
11 #include "public/platform/WebURL.h" | 11 #include "public/platform/WebURL.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class PlatformLocalCredential; | 15 class PlatformLocalCredential; |
16 | 16 |
17 class WebLocalCredential : public WebCredential { | 17 class WebLocalCredential : public WebCredential { |
18 public: | 18 public: |
| 19 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& password, const WebString& name, const WebURL& avatarURL); |
| 20 |
| 21 // FIXME: Throw this away once it's unused on the Chromium side. |
19 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& name, const WebURL& avatarURL, const WebString& password); | 22 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& name, const WebURL& avatarURL, const WebString& password); |
20 | 23 |
21 BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&); | 24 BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&); |
22 | 25 |
23 BLINK_PLATFORM_EXPORT WebString password() const; | 26 BLINK_PLATFORM_EXPORT WebString password() const; |
24 | 27 |
25 #if INSIDE_BLINK | 28 #if INSIDE_BLINK |
26 BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*); | 29 BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*); |
27 BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*); | 30 BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*); |
28 #endif | 31 #endif |
29 }; | 32 }; |
30 | 33 |
31 } // namespace blink | 34 } // namespace blink |
32 | 35 |
33 #endif // WebLocalCredential_h | 36 #endif // WebLocalCredential_h |
34 | 37 |
35 | 38 |
36 | 39 |
OLD | NEW |