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

Unified Diff: chrome/browser/policy/proto/old_generic_format.proto

Issue 6840014: Support decoding GenericNamedValue based policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test broken by patch set 2 Created 9 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
Index: chrome/browser/policy/proto/old_generic_format.proto
diff --git a/chrome/browser/policy/proto/old_generic_format.proto b/chrome/browser/policy/proto/old_generic_format.proto
new file mode 100644
index 0000000000000000000000000000000000000000..dac2850461fbcd6dbb51a149760050e70a068114
--- /dev/null
+++ b/chrome/browser/policy/proto/old_generic_format.proto
@@ -0,0 +1,59 @@
+// Copyright (c) 2011 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.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package enterprise_management;
+
+// This file keeps the deprecated GenericNamedValue based format for policies
+// available. It is intended to be removed (along with all code that makes
+// use of it) as soon as all server-side components (CPanel, D3) have been
+// migrated to provide the new, explicitly typed format to clients.
+
+// A setting is a set of generic name value pairs.
+message GenericSetting {
+ repeated GenericNamedValue named_value = 1;
+}
+
+// Generic value container.
+message GenericValue {
+ enum ValueType {
+ VALUE_TYPE_BOOL = 1;
+ VALUE_TYPE_INT64 = 2;
+ VALUE_TYPE_STRING = 3;
+ VALUE_TYPE_DOUBLE = 4;
+ VALUE_TYPE_BYTES = 5;
+ VALUE_TYPE_BOOL_ARRAY = 6;
+ VALUE_TYPE_INT64_ARRAY = 7;
+ VALUE_TYPE_STRING_ARRAY = 8;
+ VALUE_TYPE_DOUBLE_ARRAY = 9;
+ }
+
+ optional ValueType value_type = 1 [default = VALUE_TYPE_STRING];
+
+ // basic value types
+ optional bool bool_value = 2;
+ optional int64 int64_value = 3;
+ optional string string_value = 4;
+ optional double double_value = 5;
+ optional bytes bytes_value = 6;
+ repeated bool bool_array = 7;
+ repeated int64 int64_array = 8;
+ repeated string string_array = 9;
+ repeated double double_array = 10;
+}
+
+// Generic name value pair container.
+message GenericNamedValue {
+ required string name = 1;
+ optional GenericValue value = 2;
+}
+
+// Wrapper that contains the above. Designed to be a partial view of the
+// data the server currently delivers.
+message LegacyChromeSettingsProto {
+ repeated GenericNamedValue named_value = 2;
+}
« no previous file with comments | « chrome/browser/policy/proto/device_management_backend.proto ('k') | chrome/browser/policy/user_policy_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698