Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2514)

Side by Side Diff: third_party/WebKit/Source/modules/installedapp/RelatedApplication.h

Issue 1735033004: Bindings and client interface for the IsAppInstalled API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests for real. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698