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

Unified Diff: content/common/associated_interface_provider_impl.cc

Issue 2310563002: Adds routed interface support between RenderFrameHost and RenderFrame (Closed)
Patch Set: nit Created 4 years, 3 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/common/associated_interface_provider_impl.cc
diff --git a/content/common/associated_interface_provider_impl.cc b/content/common/associated_interface_provider_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c42ff3f15e090f5ca7a33a7ddeb66f68118a0a29
--- /dev/null
+++ b/content/common/associated_interface_provider_impl.cc
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/associated_interface_provider_impl.h"
+
+namespace content {
+
+AssociatedInterfaceProviderImpl::AssociatedInterfaceProviderImpl(
+ mojom::AssociatedInterfaceProviderAssociatedPtr proxy)
+ : proxy_(std::move(proxy)) {
+}
+
+AssociatedInterfaceProviderImpl::~AssociatedInterfaceProviderImpl() {}
+
+void AssociatedInterfaceProviderImpl::GetInterface(
+ const std::string& name,
+ mojo::ScopedInterfaceEndpointHandle handle) {
+ mojom::AssociatedInterfaceAssociatedRequest request;
+ request.Bind(std::move(handle));
+ return proxy_->GetAssociatedInterface(name, std::move(request));
+}
+
+mojo::AssociatedGroup* AssociatedInterfaceProviderImpl::GetAssociatedGroup() {
+ return proxy_.associated_group();
+}
+
+} // namespace content
« no previous file with comments | « content/common/associated_interface_provider_impl.h ('k') | content/common/associated_interface_registry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698