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

Unified Diff: content/browser/frame_host/frame_mojo_shell.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/browser/BUILD.gn ('k') | content/browser/frame_host/frame_mojo_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_mojo_shell.h
diff --git a/content/browser/frame_host/frame_mojo_shell.h b/content/browser/frame_host/frame_mojo_shell.h
deleted file mode 100644
index 8481f0894a2724c2d347b4322a2ef99342ef229f..0000000000000000000000000000000000000000
--- a/content/browser/frame_host/frame_mojo_shell.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
-#define CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "services/shell/public/interfaces/connector.mojom.h"
-
-namespace shell {
-class InterfaceRegistry;
-}
-
-namespace content {
-class RenderFrameHost;
-
-// This provides the |shell::mojom::Connector| interface interface to each
-// frame's shell::InterfaceRegistry, giving frames the ability to connect to
-// Mojo services.
-class FrameMojoShell : public shell::mojom::Connector {
- public:
- explicit FrameMojoShell(RenderFrameHost* frame_host);
- ~FrameMojoShell() override;
-
- void BindRequest(shell::mojom::ConnectorRequest request);
-
- private:
- // shell::Connector:
- void Connect(
- shell::mojom::IdentityPtr target,
- shell::mojom::InterfaceProviderRequest services,
- shell::mojom::InterfaceProviderPtr exposed_services,
- shell::mojom::ClientProcessConnectionPtr client_process_connection,
- const shell::mojom::Connector::ConnectCallback& callback) override;
- void Clone(shell::mojom::ConnectorRequest request) override;
-
- shell::InterfaceRegistry* GetInterfaceRegistry();
-
- RenderFrameHost* frame_host_;
- mojo::BindingSet<shell::mojom::Connector> connectors_;
-
- // shell::InterfaceRegistry providing browser interfaces to connected
- // applications.
- std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
- mojo::BindingSet<shell::mojom::InterfaceProvider>
- interface_provider_bindings_;
-
- DISALLOW_COPY_AND_ASSIGN(FrameMojoShell);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_FRAME_HOST_FRAME_MOJO_SHELL_H_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/frame_mojo_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698