| Index: third_party/WebKit/Source/modules/payments/ShippingAddress.h
|
| diff --git a/third_party/WebKit/Source/modules/payments/ShippingAddress.h b/third_party/WebKit/Source/modules/payments/ShippingAddress.h
|
| index ae12af03d72cb4a6c3b906dd1a5aeac8cf9b498b..4f0d46f6f620283a9f21b8c1724a0214ae189c98 100644
|
| --- a/third_party/WebKit/Source/modules/payments/ShippingAddress.h
|
| +++ b/third_party/WebKit/Source/modules/payments/ShippingAddress.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "public/platform/modules/payments/payment_request.mojom-blink.h"
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/Vector.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -18,8 +19,8 @@ class ShippingAddress final : public GarbageCollectedFinalized<ShippingAddress>,
|
| WTF_MAKE_NONCOPYABLE(ShippingAddress);
|
|
|
| public:
|
| - ShippingAddress() {}
|
| - virtual ~ShippingAddress() {}
|
| + explicit ShippingAddress(mojom::blink::ShippingAddressPtr);
|
| + virtual ~ShippingAddress();
|
|
|
| const String& regionCode() const { return m_regionCode; }
|
| const Vector<String>& addressLine() const { return m_addressLine; }
|
| @@ -32,6 +33,10 @@ public:
|
| const String& organization() const { return m_organization; }
|
| const String& recipient() const { return m_recipient; }
|
|
|
| + bool isValidRegionCode() const { return m_validRegionCode; }
|
| + bool isValidLanguageCode() const { return m_validLanguageCode; }
|
| + bool isValidScriptCode() const { return m_validScriptCode; }
|
| +
|
| DEFINE_INLINE_TRACE() {}
|
|
|
| private:
|
| @@ -45,6 +50,9 @@ private:
|
| String m_languageCode;
|
| String m_organization;
|
| String m_recipient;
|
| + bool m_validRegionCode;
|
| + bool m_validLanguageCode;
|
| + bool m_validScriptCode;
|
| };
|
|
|
| } // namespace blink
|
|
|