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

Unified Diff: services/shell/public/cpp/identity.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/connector.h ('k') | services/shell/public/cpp/identity.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/identity.h
diff --git a/services/shell/public/cpp/identity.h b/services/shell/public/cpp/identity.h
deleted file mode 100644
index 086b22416d82479053aa496b0fa4dd3719b889df..0000000000000000000000000000000000000000
--- a/services/shell/public/cpp/identity.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 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_IDENTITY_H_
-#define SERVICES_SHELL_PUBLIC_CPP_IDENTITY_H_
-
-#include <string>
-
-namespace shell {
-
-// Represents the identity of an application.
-// |name| is the structured name of the application.
-// |instance| is a string that allows to tie a specific instance to another. A
-// typical use case of instance is to control process grouping for a given name.
-class Identity {
- public:
- Identity();
- Identity(const std::string& name,
- const std::string& user_id);
- Identity(const std::string& name,
- const std::string& user_id,
- const std::string& instance);
- Identity(const Identity& other);
- ~Identity();
-
- bool operator<(const Identity& other) const;
- bool is_null() const { return name_.empty(); }
- bool operator==(const Identity& other) const;
-
- const std::string& name() const { return name_; }
- const std::string& user_id() const { return user_id_; }
- void set_user_id(const std::string& user_id) { user_id_ = user_id; }
- const std::string& instance() const { return instance_; }
-
- private:
- std::string name_;
- std::string user_id_;
- std::string instance_;
-};
-
-} // namespace shell
-
-#endif // SERVICES_SHELL_PUBLIC_CPP_IDENTITY_H_
« no previous file with comments | « services/shell/public/cpp/connector.h ('k') | services/shell/public/cpp/identity.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698