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

Unified Diff: content/renderer/media/media_interface_provider.h

Issue 2166953006: Eliminate FrameMojoShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « content/public/browser/content_browser_client.h ('k') | content/renderer/media/media_interface_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_interface_provider.h
diff --git a/content/renderer/media/media_interface_provider.h b/content/renderer/media/media_interface_provider.h
index fcfd75de8b6990d02563fbff16b3ba774a0d8b89..f375f1e443e01866d06a6dc619ec748dde7e2f88 100644
--- a/content/renderer/media/media_interface_provider.h
+++ b/content/renderer/media/media_interface_provider.h
@@ -13,20 +13,19 @@
#include "services/shell/public/interfaces/interface_provider.mojom.h"
#include "url/gurl.h"
+namespace shell {
+class InterfaceProvider;
+}
+
namespace content {
// MediaInterfaceProvider is an implementation of mojo InterfaceProvider that
-// provides media related services and handles app disconnection automatically.
+// provides media related services and handles disconnection automatically.
// This class is single threaded.
class CONTENT_EXPORT MediaInterfaceProvider
: public shell::mojom::InterfaceProvider {
public:
- // Callback used to connect to a mojo application.
- using ConnectToApplicationCB =
- base::Callback<shell::mojom::InterfaceProviderPtr(const GURL& url)>;
-
- explicit MediaInterfaceProvider(
- const ConnectToApplicationCB& connect_to_app_cb);
+ explicit MediaInterfaceProvider(shell::InterfaceProvider* remote_interfaces);
~MediaInterfaceProvider() final;
// InterfaceProvider implementation.
@@ -38,7 +37,7 @@ class CONTENT_EXPORT MediaInterfaceProvider
void OnConnectionError();
base::ThreadChecker thread_checker_;
- ConnectToApplicationCB connect_to_app_cb_;
+ shell::InterfaceProvider* remote_interfaces_;
media::mojom::ServiceFactoryPtr media_service_factory_;
DISALLOW_COPY_AND_ASSIGN(MediaInterfaceProvider);
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/media/media_interface_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698