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

Unified Diff: chromecast/browser/media/cast_mojo_media_application.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/browser/media/cast_mojo_media_application.cc
diff --git a/chromecast/browser/media/cast_mojo_media_application.cc b/chromecast/browser/media/cast_mojo_media_application.cc
index 9f2295d47c52f8f41149712456ed9a618b316813..93addceb781fb21d3f33ae6b6b9dae30673e7668 100644
--- a/chromecast/browser/media/cast_mojo_media_application.cc
+++ b/chromecast/browser/media/cast_mojo_media_application.cc
@@ -14,9 +14,9 @@
namespace {
void CreateServiceFactory(
mojo::InterfaceRequest<media::interfaces::ServiceFactory> request,
- mojo::shell::mojom::InterfaceProvider* interfaces,
+ shell::mojom::InterfaceProvider* interfaces,
scoped_refptr<media::MediaLog> media_log,
- std::unique_ptr<mojo::MessageLoopRef> app_refcount,
+ std::unique_ptr<shell::MessageLoopRef> app_refcount,
media::MojoMediaClient* mojo_media_client) {
new ::media::ServiceFactoryImpl(std::move(request), interfaces,
std::move(media_log), std::move(app_refcount),
@@ -39,24 +39,25 @@ CastMojoMediaApplication::CastMojoMediaApplication(
CastMojoMediaApplication::~CastMojoMediaApplication() {}
-void CastMojoMediaApplication::Initialize(mojo::Connector* connector,
- const mojo::Identity& identity,
+void CastMojoMediaApplication::Initialize(shell::Connector* connector,
+ const shell::Identity& identity,
uint32_t /* id */) {}
-bool CastMojoMediaApplication::AcceptConnection(mojo::Connection* connection) {
+bool CastMojoMediaApplication::AcceptConnection(shell::Connection* connection) {
connection->AddInterface<::media::interfaces::ServiceFactory>(this);
return true;
}
void CastMojoMediaApplication::Create(
- mojo::Connection* connection,
+ shell::Connection* connection,
mojo::InterfaceRequest<::media::interfaces::ServiceFactory> request) {
// Create the app refcount here on the application task runner so that
// 1. It is bound to the application task runner, which in turn will
// stop the app message loop when destroyed on the app task runner.
// 2. It will prevent CastMojoMediaApplication from getting destroyed until
// the task posted to the media thread is run.
- std::unique_ptr<mojo::MessageLoopRef> app_refcount = ref_factory_.CreateRef();
+ std::unique_ptr<shell::MessageLoopRef> app_refcount =
+ ref_factory_.CreateRef();
media_task_runner_->PostTask(
FROM_HERE,
base::Bind(&CreateServiceFactory, base::Passed(&request),
« no previous file with comments | « chromecast/browser/media/cast_mojo_media_application.h ('k') | components/bitmap_uploader/bitmap_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698