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

Unified Diff: services/shell/public/cpp/lib/connection_impl.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 | « services/shell/public/cpp/lib/capabilities.cc ('k') | services/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/connection_impl.h
diff --git a/services/shell/public/cpp/lib/connection_impl.h b/services/shell/public/cpp/lib/connection_impl.h
deleted file mode 100644
index ec205abdb1390f0fe68615637c4ff3030bf79ce8..0000000000000000000000000000000000000000
--- a/services/shell/public/cpp/lib/connection_impl.h
+++ /dev/null
@@ -1,75 +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_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
-#define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
-
-#include <stdint.h>
-
-#include <set>
-#include <string>
-
-#include "base/callback.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "services/shell/public/cpp/capabilities.h"
-#include "services/shell/public/cpp/connection.h"
-#include "services/shell/public/cpp/identity.h"
-#include "services/shell/public/interfaces/connector.mojom.h"
-#include "services/shell/public/interfaces/interface_provider.mojom.h"
-
-namespace shell {
-namespace internal {
-
-// A ConnectionImpl represents each half of a connection between two
-// applications, allowing customization of which interfaces are published to the
-// other.
-class ConnectionImpl : public Connection {
- public:
- ConnectionImpl();
- ConnectionImpl(const Identity& remote, State initial_state);
- ~ConnectionImpl() override;
-
- // Sets the remote provider, transferring ownership to the ConnectionImpl.
- void SetRemoteInterfaces(
- std::unique_ptr<InterfaceProvider> remote_interfaces);
-
- // Sets the remote provider, without transferring ownership.
- void set_remote_interfaces(InterfaceProvider* remote_interfaces) {
- remote_interfaces_ = remote_interfaces;
- }
-
- shell::mojom::Connector::ConnectCallback GetConnectCallback();
-
- private:
- // Connection:
- const Identity& GetRemoteIdentity() const override;
- void SetConnectionLostClosure(const base::Closure& handler) override;
- shell::mojom::ConnectResult GetResult() const override;
- bool IsPending() const override;
- void AddConnectionCompletedClosure(const base::Closure& callback) override;
- InterfaceProvider* GetRemoteInterfaces() override;
- base::WeakPtr<Connection> GetWeakPtr() override;
-
- void OnConnectionCompleted(shell::mojom::ConnectResult result,
- const std::string& target_user_id);
-
- Identity remote_;
-
- State state_;
- shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
- std::vector<base::Closure> connection_completed_callbacks_;
-
- InterfaceProvider* remote_interfaces_ = nullptr;
-
- std::unique_ptr<InterfaceProvider> remote_interfaces_owner_;
-
- base::WeakPtrFactory<ConnectionImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
-};
-
-} // namespace internal
-} // namespace shell
-
-#endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
« no previous file with comments | « services/shell/public/cpp/lib/capabilities.cc ('k') | services/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698