blob: 5ffaa5ad76df042b51ea71631114629210c8ab66 [file] [log] [blame]
// Copyright 2016 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 "media/mojo/services/mojo_media_application_factory.h"
#include "media/mojo/services/mojo_media_application.h"
#if defined(ENABLE_TEST_MOJO_MEDIA_CLIENT)
#include "media/mojo/services/test_mojo_media_client.h"
using DefaultClient = media::TestMojoMediaClient;
#elif defined(OS_ANDROID)
#include "media/mojo/services/android_mojo_media_client.h"
using DefaultClient = media::AndroidMojoMediaClient;
#else
#include "media/mojo/services/default_mojo_media_client.h"
using DefaultClient = media::DefaultMojoMediaClient;
#endif
namespace media {
// static
scoped_ptr<mojo::ShellClient> CreateMojoMediaApplication() {
return scoped_ptr<mojo::ShellClient>(
new MojoMediaApplication(make_scoped_ptr(new DefaultClient())));
}
} // namespace media