| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ShippingAddress_h |
| #define ShippingAddress_h |
| |
| #include "bindings/core/v8/ScriptWrappable.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/Noncopyable.h" |
| #include "wtf/Vector.h" |
| #include "wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| class ShippingAddress final : public GarbageCollectedFinalized<ShippingAddress>, public ScriptWrappable { |
| DEFINE_WRAPPERTYPEINFO(); |
| WTF_MAKE_NONCOPYABLE(ShippingAddress); |
| |
| public: |
| ShippingAddress() {} |
| virtual ~ShippingAddress() {} |
| |
| const String& regionCode() const { return m_regionCode; } |
| const Vector<String>& addressLine() const { return m_addressLine; } |
| const String& administrativeArea() const { return m_administrativeArea; } |
| const String& locality() const { return m_locality; } |
| const String& dependentLocality() const { return m_dependentLocality; } |
| const String& postalCode() const { return m_postalCode; } |
| const String& sortingCode() const { return m_sortingCode; } |
| const String& languageCode() const { return m_languageCode; } |
| const String& organization() const { return m_organization; } |
| const String& recipient() const { return m_recipient; } |
| |
| DEFINE_INLINE_TRACE() {} |
| |
| private: |
| String m_regionCode; |
| Vector<String> m_addressLine; |
| String m_administrativeArea; |
| String m_locality; |
| String m_dependentLocality; |
| String m_postalCode; |
| String m_sortingCode; |
| String m_languageCode; |
| String m_organization; |
| String m_recipient; |
| }; |
| |
| } // namespace blink |
| |
| #endif // ShippingAddress_h |