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

Unified Diff: services/service_manager/public/cpp/shared_file_util.h

Issue 2684433003: Files required by a service now listed in manifest. (Closed)
Patch Set: Removed unused method in apk_assets Created 3 years, 10 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
Index: services/service_manager/public/cpp/shared_file_util.h
diff --git a/services/service_manager/public/cpp/shared_file_util.h b/services/service_manager/public/cpp/shared_file_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..099e05d2507a4e37b46cef610197554f5115c775
--- /dev/null
+++ b/services/service_manager/public/cpp/shared_file_util.h
@@ -0,0 +1,29 @@
+// Copyright 2017 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_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_
+#define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_
+
+#include <map>
+#include <string>
+
+#include "base/command_line.h"
+
+namespace service_manager {
+
+class SharedFileSwitchValueBuilder final {
+ public:
+ void AddEntry(const std::string& key_str, int key_id);
dcheng 2017/02/15 08:05:28 This code isn't actually being used yet, right? Is
Jay Civelli 2017/02/15 19:53:48 Oh, forgot to use it where I was supposed to! It i
+ const std::string& switch_value() const { return switch_value_; }
+
+ private:
+ std::string switch_value_;
+};
+
+bool ParseSharedFileSwitchValue(const std::string& value,
+ std::map<int, std::string>* values);
+
+} // namespace service_manager
+
+#endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SHARED_FILE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698