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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 | « mojo/shell/public/cpp/lib/capabilities.cc ('k') | mojo/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: mojo/shell/public/cpp/lib/connection_impl.h
diff --git a/mojo/shell/public/cpp/lib/connection_impl.h b/mojo/shell/public/cpp/lib/connection_impl.h
deleted file mode 100644
index 2c58d86c0cc26324131af561400d8f6d226f385b..0000000000000000000000000000000000000000
--- a/mojo/shell/public/cpp/lib/connection_impl.h
+++ /dev/null
@@ -1,84 +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 MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
-#define MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
-
-#include <stdint.h>
-
-#include <set>
-#include <string>
-
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/shell/public/cpp/capabilities.h"
-#include "mojo/shell/public/cpp/connection.h"
-#include "mojo/shell/public/cpp/identity.h"
-#include "mojo/shell/public/interfaces/connector.mojom.h"
-#include "mojo/shell/public/interfaces/interface_provider.mojom.h"
-
-namespace mojo {
-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();
- // |allowed_interfaces| are the set of interfaces that the shell has allowed
- // an application to expose to another application. If this set contains only
- // the string value "*" all interfaces may be exposed.
- ConnectionImpl(const std::string& connection_name,
- const Identity& remote,
- uint32_t remote_id,
- shell::mojom::InterfaceProviderPtr remote_interfaces,
- shell::mojom::InterfaceProviderRequest local_interfaces,
- const CapabilityRequest& capability_request,
- State initial_state);
- ~ConnectionImpl() override;
-
- shell::mojom::Connector::ConnectCallback GetConnectCallback();
-
- private:
- // Connection:
- bool HasCapabilityClass(const std::string& class_name) const override;
- const std::string& GetConnectionName() override;
- const Identity& GetRemoteIdentity() const override;
- void SetConnectionLostClosure(const Closure& handler) override;
- shell::mojom::ConnectResult GetResult() const override;
- bool IsPending() const override;
- uint32_t GetRemoteInstanceID() const override;
- void AddConnectionCompletedClosure(const Closure& callback) override;
- bool AllowsInterface(const std::string& interface_name) const override;
- shell::mojom::InterfaceProvider* GetRemoteInterfaces() override;
- InterfaceRegistry* GetLocalRegistry() override;
- base::WeakPtr<Connection> GetWeakPtr() override;
-
- void OnConnectionCompleted(shell::mojom::ConnectResult result,
- const std::string& target_user_id,
- uint32_t target_application_id);
-
- const std::string connection_name_;
- Identity remote_;
- uint32_t remote_id_ = shell::mojom::kInvalidInstanceID;
-
- State state_;
- shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
- std::vector<Closure> connection_completed_callbacks_;
-
- InterfaceRegistry local_registry_;
- shell::mojom::InterfaceProviderPtr remote_interfaces_;
-
- const CapabilityRequest capability_request_;
- const bool allow_all_interfaces_;
-
- base::WeakPtrFactory<ConnectionImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
-};
-
-} // namespace internal
-} // namespace mojo
-
-#endif // MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
« no previous file with comments | « mojo/shell/public/cpp/lib/capabilities.cc ('k') | mojo/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698