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

Unified Diff: services/shell/connect_params.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/background/tests/test_service_manifest.json ('k') | services/shell/connect_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/connect_params.h
diff --git a/services/shell/connect_params.h b/services/shell/connect_params.h
deleted file mode 100644
index 7b8296693d6feaaffe13bfd4879885fdc5f2586a..0000000000000000000000000000000000000000
--- a/services/shell/connect_params.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2015 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_CONNECT_PARAMS_H_
-#define SERVICES_SHELL_CONNECT_PARAMS_H_
-
-#include <string>
-#include <utility>
-
-#include "base/callback.h"
-#include "base/macros.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 {
-
-// This class represents a request for the application manager to connect to an
-// application.
-class ConnectParams {
- public:
- ConnectParams();
- ~ConnectParams();
-
- void set_source(const Identity& source) { source_ = source; }
- const Identity& source() const { return source_; }
- void set_target(const Identity& target) { target_ = target; }
- const Identity& target() const { return target_; }
-
- void set_remote_interfaces(mojom::InterfaceProviderRequest value) {
- remote_interfaces_ = std::move(value);
- }
- mojom::InterfaceProviderRequest TakeRemoteInterfaces() {
- return std::move(remote_interfaces_);
- }
-
- void set_client_process_connection(
- mojom::ClientProcessConnectionPtr client_process_connection) {
- client_process_connection_ = std::move(client_process_connection);
- }
- mojom::ClientProcessConnectionPtr TakeClientProcessConnection() {
- return std::move(client_process_connection_);
- }
-
- void set_connect_callback(const mojom::Connector::ConnectCallback& value) {
- connect_callback_ = value;
- }
- const mojom::Connector::ConnectCallback& connect_callback() const {
- return connect_callback_;
- }
-
- private:
- // It may be null (i.e., is_null() returns true) which indicates that there is
- // no source (e.g., for the first application or in tests).
- Identity source_;
- // The identity of the application being connected to.
- Identity target_;
-
- mojom::InterfaceProviderRequest remote_interfaces_;
- mojom::ClientProcessConnectionPtr client_process_connection_;
- mojom::Connector::ConnectCallback connect_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(ConnectParams);
-};
-
-} // namespace shell
-
-#endif // SERVICES_SHELL_CONNECT_PARAMS_H_
« no previous file with comments | « services/shell/background/tests/test_service_manifest.json ('k') | services/shell/connect_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698