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

Side by Side Diff: third_party/WebKit/Source/modules/media_capabilities/MediaDecodingAbility.h

Issue 2807713002: [Media Capabilities] Rename query() to decodingInfo() and MediaDecodingAbility to MediaCapabilities… (Closed)
Patch Set: review comments & rebase Created 3 years, 8 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 2017 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 MediaDecodingAbility_h
6 #define MediaDecodingAbility_h
7
8 #include <memory>
9
10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "public/platform/modules/media_capabilities/WebMediaDecodingAbility.h"
12
13 namespace blink {
14
15 class ScriptPromiseResolver;
16
17 // Implementation of the MediaDecodingAbility interface.
18 class MediaDecodingAbility final
19 : public GarbageCollectedFinalized<MediaDecodingAbility>,
20 public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO();
22
23 public:
24 using WebType = std::unique_ptr<WebMediaDecodingAbility>;
25 static MediaDecodingAbility* Take(ScriptPromiseResolver*,
26 std::unique_ptr<WebMediaDecodingAbility>);
27
28 bool supported() const;
29 bool smooth() const;
30 bool powerEfficient() const;
31
32 DECLARE_VIRTUAL_TRACE();
33
34 private:
35 MediaDecodingAbility() = delete;
36 explicit MediaDecodingAbility(std::unique_ptr<WebMediaDecodingAbility>);
37
38 std::unique_ptr<WebMediaDecodingAbility> web_media_decoding_ability_;
39 };
40
41 } // namespace blink
42
43 #endif // MediaDecodingAbility_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698