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 | |
17 public: | |
18 static RelatedApplication* create(const String& platform, const String& url, const String& id) | |
19 { | |
20 return new RelatedApplication(platform, url, id); | |
21 } | |
22 | |
23 RelatedApplication(const String& platform, const String& url, const String& id) | |
dcheng
2016/03/01 20:03:03
Constructor should be private.
Daniel Nishi
2016/03/01 20:46:20
Done.
| |
24 : m_platform(platform) | |
25 , m_url(url) | |
26 , m_id(id) | |
27 { | |
28 } | |
29 | |
30 virtual ~RelatedApplication() {} | |
31 | |
32 String platform() const { return m_platform; } | |
33 String url() const { return m_url; } | |
34 String id() const { return m_id; } | |
35 | |
36 DEFINE_INLINE_TRACE() {} | |
37 | |
38 private: | |
39 const String m_platform; | |
40 const String m_url; | |
41 const String m_id; | |
42 }; | |
43 | |
44 } // namespace blink | |
45 | |
46 #endif // RelatedApplication_h | |
OLD | NEW |