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

Unified Diff: content/common/associated_interface_provider_impl.h

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
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/associated_interface_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/associated_interface_provider_impl.h
diff --git a/content/common/associated_interface_provider_impl.h b/content/common/associated_interface_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..af01ce55427a5ee9fa6916635c7e066d05ca206a
--- /dev/null
+++ b/content/common/associated_interface_provider_impl.h
@@ -0,0 +1,33 @@
+// 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/public/common/associated_interface_provider.h"
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "content/common/associated_interfaces.mojom.h"
+#include "mojo/public/cpp/bindings/associated_group.h"
+
+namespace content {
+
+class AssociatedInterfaceProviderImpl : public AssociatedInterfaceProvider {
+ public:
+ // Binds this to a remote mojom::AssociatedInterfaceProvider.
+ explicit AssociatedInterfaceProviderImpl(
+ mojom::AssociatedInterfaceProviderAssociatedPtr proxy);
+ ~AssociatedInterfaceProviderImpl() override;
+
+ // AssociatedInterfaceProvider:
+ void GetInterface(const std::string& name,
+ mojo::ScopedInterfaceEndpointHandle handle) override;
+ mojo::AssociatedGroup* GetAssociatedGroup() override;
+
+ private:
+ mojom::AssociatedInterfaceProviderAssociatedPtr proxy_;
+
+ DISALLOW_COPY_AND_ASSIGN(AssociatedInterfaceProviderImpl);
+};
+
+} // namespace content
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/associated_interface_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698