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

Unified Diff: content/public/common/associated_interface_provider.h

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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: content/public/common/associated_interface_provider.h
diff --git a/content/public/common/associated_interface_provider.h b/content/public/common/associated_interface_provider.h
index c9e7384388ee8e51b84592c7ad8054d1a282279c..96b8c0254e8a1b229512298bea8e6e52cfec2c58 100644
--- a/content/public/common/associated_interface_provider.h
+++ b/content/public/common/associated_interface_provider.h
@@ -11,10 +11,6 @@
#include "mojo/public/cpp/bindings/associated_interface_request.h"
#include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
-namespace mojo {
-class AssociatedGroup;
-}
-
namespace content {
// A helper interface for connecting to remote Channel-associated interfaces.
@@ -39,15 +35,10 @@ class AssociatedInterfaceProvider {
virtual void GetInterface(const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) = 0;
- // Returns an AssociatedGroup for the provider. This may be used to create
- // new associated endpoints for use with Channel-associated interfaces.
- virtual mojo::AssociatedGroup* GetAssociatedGroup() = 0;
-
// Templated helper for GetInterface().
template <typename Interface>
void GetInterface(mojo::AssociatedInterfacePtr<Interface>* proxy) {
- mojo::AssociatedInterfaceRequest<Interface> request =
- mojo::MakeRequest(proxy, GetAssociatedGroup());
+ auto request = mojo::MakeRequest(proxy);
GetInterface(Interface::Name_, request.PassHandle());
}
« no previous file with comments | « content/common/associated_interface_provider_impl.cc ('k') | content/renderer/dom_storage/local_storage_cached_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698