| 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 // TODO(mkwst): Throw this away once it's unused on the Chromium side: https://c
rbug.com/494880 |
| 15 class WebLocalCredential : public WebCredential { | 16 class WebLocalCredential : public WebCredential { |
| 16 public: | 17 public: |
| 17 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& password, const WebString& name, const WebURL& avatarURL); | 18 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& password, const WebString& name, const WebURL& avatarURL); |
| 18 | 19 |
| 19 // FIXME: Throw this away once it's unused on the Chromium side. | |
| 20 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& name, const WebURL& avatarURL, const WebString& password); | 20 BLINK_PLATFORM_EXPORT WebLocalCredential(const WebString& id, const WebStrin
g& name, const WebURL& avatarURL, const WebString& password); |
| 21 | 21 |
| 22 BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&); | 22 BLINK_PLATFORM_EXPORT void assign(const WebLocalCredential&); |
| 23 | 23 |
| 24 BLINK_PLATFORM_EXPORT WebString password() const; | 24 BLINK_PLATFORM_EXPORT WebString password() const; |
| 25 | 25 |
| 26 #if INSIDE_BLINK | 26 #if INSIDE_BLINK |
| 27 BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*); | 27 BLINK_PLATFORM_EXPORT WebLocalCredential(PlatformCredential*); |
| 28 BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*); | 28 BLINK_PLATFORM_EXPORT WebLocalCredential& operator=(PlatformCredential*); |
| 29 #endif | 29 #endif |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace blink | 32 } // namespace blink |
| 33 | 33 |
| 34 #endif // WebLocalCredential_h | 34 #endif // WebLocalCredential_h |
| 35 | 35 |
| 36 | 36 |
| 37 | 37 |
| OLD | NEW |