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

Unified Diff: media/mojo/services/mojo_media_application.h

Issue 2434673002: media: Rename MojoMediaApplication to MediaService (Closed)
Patch Set: media: Rename MojoMediaApplication to MediaService Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_cdm_service.h ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_media_application.h
diff --git a/media/mojo/services/mojo_media_application.h b/media/mojo/services/mojo_media_application.h
deleted file mode 100644
index 70ab9bedd5c9a8f490612a413980534966c0f31e..0000000000000000000000000000000000000000
--- a/media/mojo/services/mojo_media_application.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
-#define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
-
-#include <stdint.h>
-
-#include <memory>
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "media/mojo/interfaces/media_service.mojom.h"
-#include "media/mojo/interfaces/service_factory.mojom.h"
-#include "media/mojo/services/media_mojo_export.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-#include "services/service_manager/public/cpp/interface_factory.h"
-#include "services/service_manager/public/cpp/service.h"
-#include "services/service_manager/public/cpp/service_context_ref.h"
-#include "url/gurl.h"
-
-namespace media {
-
-class MediaLog;
-class MojoMediaClient;
-
-class MEDIA_MOJO_EXPORT MojoMediaApplication
- : public NON_EXPORTED_BASE(service_manager::Service),
- public NON_EXPORTED_BASE(
- service_manager::InterfaceFactory<mojom::MediaService>),
- public NON_EXPORTED_BASE(mojom::MediaService) {
- public:
- MojoMediaApplication(std::unique_ptr<MojoMediaClient> mojo_media_client,
- const base::Closure& quit_closure);
- ~MojoMediaApplication() final;
-
- private:
- // service_manager::Service implementation.
- void OnStart(const service_manager::Identity& identity) final;
- bool OnConnect(const service_manager::Identity& remote_identity,
- service_manager::InterfaceRegistry* registry) final;
- bool OnStop() final;
-
- // service_manager::InterfaceFactory<mojom::MediaService> implementation.
- void Create(const service_manager::Identity& remote_identity,
- mojom::MediaServiceRequest request) final;
-
- // mojom::MediaService implementation.
- void CreateServiceFactory(
- mojom::ServiceFactoryRequest request,
- service_manager::mojom::InterfaceProviderPtr remote_interfaces) final;
-
- // Note: Since each instance runs on a different thread, do not share a common
- // MojoMediaClient with other instances to avoid threading issues. Hence using
- // a unique_ptr here.
- std::unique_ptr<MojoMediaClient> mojo_media_client_;
-
- scoped_refptr<MediaLog> media_log_;
- service_manager::ServiceContextRefFactory ref_factory_;
-
- mojo::BindingSet<mojom::MediaService> bindings_;
-};
-
-} // namespace media
-
-#endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_H_
« no previous file with comments | « media/mojo/services/mojo_cdm_service.h ('k') | media/mojo/services/mojo_media_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698