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

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

Issue 1757403002: More user id tracking for mus: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks 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/access_policy.h ('k') | components/mus/ws/connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/connection_manager.h
diff --git a/components/mus/ws/connection_manager.h b/components/mus/ws/connection_manager.h
index a25e4562d28a9a4603cd1f3a1148c150af05c38c..f87b1bdc65dea26ea3af72c78412506eebdcf996 100644
--- a/components/mus/ws/connection_manager.h
+++ b/components/mus/ws/connection_manager.h
@@ -23,6 +23,7 @@
#include "components/mus/ws/operation.h"
#include "components/mus/ws/server_window_delegate.h"
#include "components/mus/ws/server_window_observer.h"
+#include "components/mus/ws/user_id_tracker.h"
#include "components/mus/ws/window_manager_factory_registry.h"
#include "components/mus/ws/window_tree_host_impl.h"
#include "mojo/converters/surfaces/custom_surface_converter.h"
@@ -71,10 +72,13 @@ class ConnectionManager : public ServerWindowDelegate,
ConnectionManagerDelegate* delegate() { return delegate_; }
+ UserIdTracker* user_id_tracker() { return &user_id_tracker_; }
+
// Adds/removes a WindowTreeHost. ConnectionManager owns the
// WindowTreeHostImpls.
void AddHost(WindowTreeHostImpl* host);
void DestroyHost(WindowTreeHostImpl* host);
+ std::set<WindowTreeHostImpl*> hosts() { return hosts_; }
// Creates a new ServerWindow. The return value is owned by the caller, but
// must be destroyed before ConnectionManager.
@@ -109,6 +113,8 @@ class ConnectionManager : public ServerWindowDelegate,
// Returns the connection by id.
WindowTreeImpl* GetConnection(ConnectionSpecificId connection_id);
+ size_t num_trees() const { return tree_map_.size(); }
+
// Returns the Window identified by |id|.
ServerWindow* GetWindow(const WindowId& id);
@@ -161,10 +167,7 @@ class ConnectionManager : public ServerWindowDelegate,
void AddDisplayManagerBinding(
mojo::InterfaceRequest<mojom::DisplayManager> request);
- void CreateWindowManagerFactoryService(
- const uint32_t user_id,
- mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request);
- void OnWindowManagerFactorySet();
+ void OnFirstWindowManagerFactorySet();
WindowManagerFactoryRegistry* window_manager_factory_registry() {
return &window_manager_factory_registry_;
@@ -315,6 +318,8 @@ class ConnectionManager : public ServerWindowDelegate,
// Overriden from mojom::DisplayManager:
void AddObserver(mojom::DisplayManagerObserverPtr observer) override;
+ UserIdTracker user_id_tracker_;
+
ConnectionManagerDelegate* delegate_;
// State for rendering into a Surface.
« no previous file with comments | « components/mus/ws/access_policy.h ('k') | components/mus/ws/connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698