OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef RelatedApplication_h |
| 6 #define RelatedApplication_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/GarbageCollected.h" |
| 10 #include "wtf/text/WTFString.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class RelatedApplication final : public GarbageCollectedFinalized<RelatedApplica
tion>, public ScriptWrappable { |
| 15 DEFINE_WRAPPERTYPEINFO(); |
| 16 public: |
| 17 static RelatedApplication* create(const String& platform, const String& url,
const String& id) |
| 18 { |
| 19 return new RelatedApplication(platform, url, id); |
| 20 } |
| 21 |
| 22 virtual ~RelatedApplication() {} |
| 23 |
| 24 String platform() const { return m_platform; } |
| 25 String url() const { return m_url; } |
| 26 String id() const { return m_id; } |
| 27 |
| 28 DEFINE_INLINE_TRACE() {} |
| 29 |
| 30 private: |
| 31 RelatedApplication(const String& platform, const String& url, const String&
id) |
| 32 : m_platform(platform) |
| 33 , m_url(url) |
| 34 , m_id(id) |
| 35 { |
| 36 } |
| 37 |
| 38 const String m_platform; |
| 39 const String m_url; |
| 40 const String m_id; |
| 41 }; |
| 42 |
| 43 } // namespace blink |
| 44 |
| 45 #endif // RelatedApplication_h |
OLD | NEW |