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

Unified Diff: components/view_manager/client_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/android_loader.cc ('k') | components/view_manager/client_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/client_connection.h
diff --git a/components/view_manager/client_connection.h b/components/view_manager/client_connection.h
deleted file mode 100644
index 4a4b5216fe02989ef839aa27d14bcc50332d1d8c..0000000000000000000000000000000000000000
--- a/components/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 COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_
-#define COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "components/view_manager/public/interfaces/view_tree.mojom.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
-
-namespace view_manager {
-
-class ConnectionManager;
-class ViewTreeImpl;
-
-// ClientConnection encapsulates the state needed for a single client connected
-// to the view manager.
-class ClientConnection {
- public:
- ClientConnection(scoped_ptr<ViewTreeImpl> service,
- mojo::ViewTreeClient* client);
- virtual ~ClientConnection();
-
- ViewTreeImpl* service() { return service_.get(); }
- const ViewTreeImpl* service() const { return service_.get(); }
-
- mojo::ViewTreeClient* client() { return client_; }
-
- private:
- scoped_ptr<ViewTreeImpl> service_;
- mojo::ViewTreeClient* client_;
-
- DISALLOW_COPY_AND_ASSIGN(ClientConnection);
-};
-
-// Bindings implementation of ClientConnection.
-class DefaultClientConnection : public ClientConnection {
- public:
- DefaultClientConnection(
- scoped_ptr<ViewTreeImpl> service_impl,
- ConnectionManager* connection_manager,
- mojo::InterfaceRequest<mojo::ViewTree> service_request,
- mojo::ViewTreeClientPtr client);
- ~DefaultClientConnection() override;
-
- private:
- ConnectionManager* connection_manager_;
- mojo::Binding<mojo::ViewTree> binding_;
- mojo::ViewTreeClientPtr client_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultClientConnection);
-};
-
-} // namespace view_manager
-
-#endif // COMPONENTS_VIEW_MANAGER_CLIENT_CONNECTION_H_
« no previous file with comments | « components/view_manager/android_loader.cc ('k') | components/view_manager/client_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698