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

Unified Diff: components/mus/ws/connection_manager_delegate.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/connection_manager.cc ('k') | components/mus/ws/window_tree_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/connection_manager_delegate.h
diff --git a/components/mus/ws/connection_manager_delegate.h b/components/mus/ws/connection_manager_delegate.h
index 7b9c31952cb9cb30f27cfbee6ee4c732725c15c7..1cabcd1b68a55b2e0e174d0212bd15a1284f6266 100644
--- a/components/mus/ws/connection_manager_delegate.h
+++ b/components/mus/ws/connection_manager_delegate.h
@@ -9,6 +9,7 @@
#include <string>
+#include "base/memory/scoped_ptr.h"
#include "components/mus/common/types.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -27,6 +28,7 @@ class ClientConnection;
class ConnectionManager;
class ServerWindow;
class WindowTreeHostImpl;
+class WindowTreeImpl;
class ConnectionManagerDelegate {
public:
@@ -36,20 +38,12 @@ class ConnectionManagerDelegate {
// Creates a ClientConnection in response to Embed() calls on the
// ConnectionManager.
- virtual ClientConnection* CreateClientConnectionForEmbedAtWindow(
- ConnectionManager* connection_manager,
+ virtual scoped_ptr<ClientConnection> CreateClientConnectionForEmbedAtWindow(
+ ws::ConnectionManager* connection_manager,
+ ws::WindowTreeImpl* tree,
mojom::WindowTreeRequest tree_request,
- ServerWindow* root,
- uint32_t policy_bitmask,
mojom::WindowTreeClientPtr client) = 0;
- virtual ClientConnection* CreateClientConnectionForWindowManager(
- WindowTreeHostImpl* tree_host,
- ServerWindow* window,
- const mojom::Display& display,
- uint32_t user_id,
- mojom::WindowManagerFactory* factory) = 0;
-
// Called if no WindowTreeHosts have been created, but a
// WindowManagerFactory has been set.
virtual void CreateDefaultWindowTreeHosts() = 0;
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/window_tree_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698