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

Unified Diff: media/mojo/services/media_service.cc

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/media_service.h ('k') | media/mojo/services/media_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_service.cc
diff --git a/media/mojo/services/mojo_media_application.cc b/media/mojo/services/media_service.cc
similarity index 67%
rename from media/mojo/services/mojo_media_application.cc
rename to media/mojo/services/media_service.cc
index 2216f7f0a17779c0c2a3a4c9eeab8721104a0fc7..1209a5f3343ab5873813ba86f23f513ab5e2fb47 100644
--- a/media/mojo/services/mojo_media_application.cc
+++ b/media/mojo/services/media_service.cc
@@ -2,7 +2,7 @@
// 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.h"
+#include "media/mojo/services/media_service.h"
#include <utility>
@@ -16,40 +16,37 @@
namespace media {
// TODO(xhwang): Hook up MediaLog when possible.
-MojoMediaApplication::MojoMediaApplication(
- std::unique_ptr<MojoMediaClient> mojo_media_client,
- const base::Closure& quit_closure)
+MediaService::MediaService(std::unique_ptr<MojoMediaClient> mojo_media_client,
+ const base::Closure& quit_closure)
: mojo_media_client_(std::move(mojo_media_client)),
media_log_(new MediaLog()),
ref_factory_(quit_closure) {
DCHECK(mojo_media_client_);
}
-MojoMediaApplication::~MojoMediaApplication() {}
+MediaService::~MediaService() {}
-void MojoMediaApplication::OnStart(const service_manager::Identity& identity) {
+void MediaService::OnStart(const service_manager::Identity& identity) {
mojo_media_client_->Initialize();
}
-bool MojoMediaApplication::OnConnect(
- const service_manager::Identity& remote_identity,
- service_manager::InterfaceRegistry* registry) {
+bool MediaService::OnConnect(const service_manager::Identity& remote_identity,
+ service_manager::InterfaceRegistry* registry) {
registry->AddInterface<mojom::MediaService>(this);
return true;
}
-bool MojoMediaApplication::OnStop() {
+bool MediaService::OnStop() {
mojo_media_client_.reset();
return true;
}
-void MojoMediaApplication::Create(
- const service_manager::Identity& remote_identity,
- mojom::MediaServiceRequest request) {
+void MediaService::Create(const service_manager::Identity& remote_identity,
+ mojom::MediaServiceRequest request) {
bindings_.AddBinding(this, std::move(request));
}
-void MojoMediaApplication::CreateServiceFactory(
+void MediaService::CreateServiceFactory(
mojom::ServiceFactoryRequest request,
service_manager::mojom::InterfaceProviderPtr remote_interfaces) {
// Ignore request if service has already stopped.
« no previous file with comments | « media/mojo/services/media_service.h ('k') | media/mojo/services/media_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698