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

Unified Diff: components/mus/ws/window_tree_impl.h

Issue 1764483003: Changes ownership of ClientConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_impl.h
diff --git a/components/mus/ws/window_tree_impl.h b/components/mus/ws/window_tree_impl.h
index 604cf221dd36f066a8df72709c1142de01d5a3d7..859f53ca36f63dd3389d9d201ccf094f4a3f8056 100644
--- a/components/mus/ws/window_tree_impl.h
+++ b/components/mus/ws/window_tree_impl.h
@@ -20,6 +20,7 @@
#include "components/mus/public/interfaces/surface_id.mojom.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "components/mus/ws/access_policy_delegate.h"
+#include "components/mus/ws/client_connection.h"
#include "components/mus/ws/ids.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
@@ -51,7 +52,8 @@ class WindowTreeImpl : public mojom::WindowTree,
uint32_t policy_bitmask);
~WindowTreeImpl() override;
- void Init(mojom::WindowTreeClient* client, mojom::WindowTreePtr tree);
+ void Init(scoped_ptr<ClientConnection> client_connection,
+ mojom::WindowTreePtr tree);
// Called if this WindowTreeImpl hosts the WindowManager. This happens if
// this WindowTreeImpl serves as the root of a WindowTreeHost.
@@ -59,7 +61,7 @@ class WindowTreeImpl : public mojom::WindowTree,
ConnectionSpecificId id() const { return id_; }
- mojom::WindowTreeClient* client() { return client_; }
+ mojom::WindowTreeClient* client() { return client_connection_->client(); }
// Returns the Window with the specified id.
ServerWindow* GetWindow(const WindowId& id) {
@@ -371,7 +373,7 @@ class WindowTreeImpl : public mojom::WindowTree,
ConnectionSpecificId next_window_id_;
- mojom::WindowTreeClient* client_;
+ scoped_ptr<ClientConnection> client_connection_;
scoped_ptr<mus::ws::AccessPolicy> access_policy_;
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698