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

Unified Diff: components/view_manager/view_tree_host_connection.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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 | « components/view_manager/view_tree_apptest.cc ('k') | components/view_manager/view_tree_host_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/view_tree_host_connection.h
diff --git a/components/view_manager/view_tree_host_connection.h b/components/view_manager/view_tree_host_connection.h
deleted file mode 100644
index 0ff96febef95d121c21f8887a6f7ebaa5761163b..0000000000000000000000000000000000000000
--- a/components/view_manager/view_tree_host_connection.h
+++ /dev/null
@@ -1,86 +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 COMPONENTS_VIEW_MANAGER_VIEW_TREE_HOST_CONNECTION_H_
-#define COMPONENTS_VIEW_MANAGER_VIEW_TREE_HOST_CONNECTION_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "components/view_manager/public/interfaces/view_tree_host.mojom.h"
-#include "components/view_manager/view_tree_host_delegate.h"
-#include "components/view_manager/view_tree_host_impl.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
-
-namespace view_manager {
-
-class ConnectionManager;
-class ViewTreeImpl;
-
-// ViewTreeHostConnection is a server-side object that encapsulates the
-// connection between a client of the ViewTreeHost and its implementation.
-// ViewTreeHostConnection also establishes a ClientConnection via the same
-// code path as embedded views. ConnectionManager manages the lifetime of
-// ViewTreeHostConnections. If a connection to the client is lost or if the
-// associated root is closed, the ViewTreeHostConnection will inform the
-// ConnectionManager to destroy the root and its associated view tree.
-class ViewTreeHostConnection : public ViewTreeHostDelegate {
- public:
- ViewTreeHostConnection(
- scoped_ptr<ViewTreeHostImpl> host_impl,
- ConnectionManager* connection_manager);
-
- void set_view_tree(ViewTreeImpl* tree) {
- tree_ = tree;
- }
-
- ViewTreeHostImpl* view_tree_host() { return host_.get();}
- const ViewTreeHostImpl* view_tree_host() const { return host_.get(); }
-
- ConnectionManager* connection_manager() { return connection_manager_; }
- const ConnectionManager* connection_manager() const {
- return connection_manager_;
- }
-
- void CloseConnection();
-
- protected:
- ~ViewTreeHostConnection() override;
-
- // ViewTreeHostDelegate:
- void OnDisplayInitialized() override;
- void OnDisplayClosed() override;
- ViewTreeImpl* GetViewTree() override;
-
- private:
- scoped_ptr<ViewTreeHostImpl> host_;
- ViewTreeImpl* tree_;
- ConnectionManager* connection_manager_;
- bool connection_closed_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewTreeHostConnection);
-};
-
-// Live implementation of ViewTreeHostConnection.
-class ViewTreeHostConnectionImpl : public ViewTreeHostConnection {
- public:
- ViewTreeHostConnectionImpl(
- mojo::InterfaceRequest<mojo::ViewTreeHost> request,
- scoped_ptr<ViewTreeHostImpl> host_impl,
- mojo::ViewTreeClientPtr client,
- ConnectionManager* connection_manager);
-
- private:
- ~ViewTreeHostConnectionImpl() override;
-
- // ViewTreeHostDelegate:
- void OnDisplayInitialized() override;
-
- mojo::Binding<mojo::ViewTreeHost> binding_;
- mojo::ViewTreeClientPtr client_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewTreeHostConnectionImpl);
-};
-
-} // namespace view_manager
-
-#endif // COMPONENTS_VIEW_MANAGER_VIEW_TREE_HOST_CONNECTION_H_
« no previous file with comments | « components/view_manager/view_tree_apptest.cc ('k') | components/view_manager/view_tree_host_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698