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

Side by Side Diff: media/mojo/services/mojo_media_application.cc

Issue 2075003002: Separate Remote InterfaceProvider again, and add a new client lib type for it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | services/shell/public/cpp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/mojo/services/mojo_media_application.h" 5 #include "media/mojo/services/mojo_media_application.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "media/base/media_log.h" 9 #include "media/base/media_log.h"
10 #include "media/mojo/services/mojo_media_client.h" 10 #include "media/mojo/services/mojo_media_client.h"
(...skipping 30 matching lines...) Expand all
41 41
42 bool MojoMediaApplication::ShellConnectionLost() { 42 bool MojoMediaApplication::ShellConnectionLost() {
43 mojo_media_client_->WillQuit(); 43 mojo_media_client_->WillQuit();
44 return true; 44 return true;
45 } 45 }
46 46
47 void MojoMediaApplication::Create( 47 void MojoMediaApplication::Create(
48 shell::Connection* connection, 48 shell::Connection* connection,
49 mojo::InterfaceRequest<mojom::ServiceFactory> request) { 49 mojo::InterfaceRequest<mojom::ServiceFactory> request) {
50 // The created object is owned by the pipe. 50 // The created object is owned by the pipe.
51 new ServiceFactoryImpl( 51 new ServiceFactoryImpl(std::move(request),
52 std::move(request), 52 connection->GetRemoteInterfaceProvider(), media_log_,
53 connection->GetInterfaceRegistry()->GetRemoteInterfaces(), media_log_, 53 ref_factory_.CreateRef(), mojo_media_client_.get());
54 ref_factory_.CreateRef(), mojo_media_client_.get());
55 } 54 }
56 55
57 } // namespace media 56 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | services/shell/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698