summaryrefslogtreecommitdiffstats
path: root/webkit/glue/media_player_private_impl.cc
blob: 15661b53d7a6cc055cc0a211266d72095244f73e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2008-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "config.h"

#if ENABLE(VIDEO)

#include "MediaPlayerPrivateChromium.h"

#include "webkit/glue/webkit_glue.h"
#include "webkit/glue/webmediaplayerclient_impl.h"

namespace WebCore {

void MediaPlayerPrivate::registerMediaEngine(MediaEngineRegistrar registrar) {
  if (webkit_glue::IsMediaPlayerAvailable()) {
    registrar(&WebMediaPlayerClientImpl::create,
              &WebMediaPlayerClientImpl::getSupportedTypes,
              &WebMediaPlayerClientImpl::supportsType);
  }
}

}  // namespace WebCore

#endif