OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 InstalledApp_h |
| 6 #define InstalledApp_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "wtf/text/WTFString.h" |
| 10 #include "bindings/core/v8/Dictionary.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class ScriptPromise; |
| 15 class ScriptState; |
| 16 |
| 17 class InstalledApp final : public GarbageCollected<InstalledApp>, public ScriptW
rappable { |
| 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 |
| 20 public: |
| 21 static ScriptPromise isAppInstalled(ScriptState*, const String& asset1, cons
t String& asset2); |
| 22 static ScriptPromise isNativeAppInstalled(ScriptState*, const Dictionary&); |
| 23 // Interface required by garbage collection. |
| 24 DEFINE_INLINE_TRACE() {} |
| 25 private: |
| 26 InstalledApp(); |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // InstalledApp_h |
OLD | NEW |