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

Unified Diff: services/view_manager/client_connection.h

Issue 1530333005: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2c
Patch Set: rebase Created 5 years 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 | « services/view_manager/animation_runner_unittest.cc ('k') | services/view_manager/client_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/view_manager/client_connection.h
diff --git a/services/view_manager/client_connection.h b/services/view_manager/client_connection.h
deleted file mode 100644
index 84f5b1ae29ca9fb6a6e2eeafa4aa4f9836a6354a..0000000000000000000000000000000000000000
--- a/services/view_manager/client_connection.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 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 SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_
-#define SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/services/view_manager/interfaces/view_manager.mojom.h"
-
-namespace view_manager {
-
-class ConnectionManager;
-class ViewManagerServiceImpl;
-
-// ClientConnection encapsulates the state needed for a single client connected
-// to the view manager.
-class ClientConnection {
- public:
- ClientConnection(scoped_ptr<ViewManagerServiceImpl> service,
- mojo::ViewManagerClient* client);
- virtual ~ClientConnection();
-
- ViewManagerServiceImpl* service() { return service_.get(); }
- const ViewManagerServiceImpl* service() const { return service_.get(); }
-
- mojo::ViewManagerClient* client() { return client_; }
-
- private:
- scoped_ptr<ViewManagerServiceImpl> service_;
- mojo::ViewManagerClient* client_;
-
- DISALLOW_COPY_AND_ASSIGN(ClientConnection);
-};
-
-// Bindings implementation of ClientConnection.
-class DefaultClientConnection : public ClientConnection {
- public:
- DefaultClientConnection(
- scoped_ptr<ViewManagerServiceImpl> service_impl,
- ConnectionManager* connection_manager,
- mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
- mojo::ViewManagerClientPtr client);
- ~DefaultClientConnection() override;
-
- private:
- ConnectionManager* connection_manager_;
- mojo::Binding<mojo::ViewManagerService> binding_;
- mojo::ViewManagerClientPtr client_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection);
-};
-
-} // namespace view_manager
-
-#endif // SERVICES_VIEW_MANAGER_CLIENT_CONNECTION_H_
« no previous file with comments | « services/view_manager/animation_runner_unittest.cc ('k') | services/view_manager/client_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698