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

Side by Side Diff: services/shell/service_overrides.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 unified diff | Download patch
« no previous file with comments | « services/shell/service_manager.cc ('k') | services/shell/service_overrides.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_SHELL_SERVICE_OVERRIDES_H_
6 #define SERVICES_SHELL_SERVICE_OVERRIDES_H_
7
8 #include <map>
9 #include <memory>
10 #include <string>
11
12 #include "base/files/file_path.h"
13 #include "base/macros.h"
14 #include "base/values.h"
15
16 namespace shell {
17
18 class ServiceOverrides {
19 public:
20 struct Entry {
21 Entry();
22 ~Entry();
23
24 base::FilePath executable_path;
25 std::string package_name;
26 };
27
28 explicit ServiceOverrides(std::unique_ptr<base::Value> overrides);
29 ~ServiceOverrides();
30
31 bool GetExecutablePathOverride(const std::string& service_name,
32 base::FilePath* path) const;
33
34 const std::map<std::string, Entry>& entries() const { return entries_; }
35
36 private:
37 std::map<std::string, Entry> entries_;
38
39 DISALLOW_COPY_AND_ASSIGN(ServiceOverrides);
40 };
41
42 } // namespace shell
43
44 #endif // SERVICES_SHELL_SERVICE_OVERRIDES_H_
OLDNEW
« no previous file with comments | « services/shell/service_manager.cc ('k') | services/shell/service_overrides.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698