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

Side by Side Diff: base/values.h

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 years, 7 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 | « no previous file | base/values.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file specifies a recursive data storage class called Value intended for 5 // This file specifies a recursive data storage class called Value intended for
6 // storing settings and other persistable data. 6 // storing settings and other persistable data.
7 // 7 //
8 // A Value represents something that can be stored in JSON or passed to/from 8 // A Value represents something that can be stored in JSON or passed to/from
9 // JavaScript. As such, it is NOT a generalized variant type, since only the 9 // JavaScript. As such, it is NOT a generalized variant type, since only the
10 // types supported by JavaScript/JSON are supported. 10 // types supported by JavaScript/JSON are supported.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void SetBoolean(StringPiece path, bool in_value); 247 void SetBoolean(StringPiece path, bool in_value);
248 void SetInteger(StringPiece path, int in_value); 248 void SetInteger(StringPiece path, int in_value);
249 void SetDouble(StringPiece path, double in_value); 249 void SetDouble(StringPiece path, double in_value);
250 void SetString(StringPiece path, StringPiece in_value); 250 void SetString(StringPiece path, StringPiece in_value);
251 void SetString(StringPiece path, const string16& in_value); 251 void SetString(StringPiece path, const string16& in_value);
252 252
253 // Like Set(), but without special treatment of '.'. This allows e.g. URLs to 253 // Like Set(), but without special treatment of '.'. This allows e.g. URLs to
254 // be used as paths. 254 // be used as paths.
255 void SetWithoutPathExpansion(StringPiece key, 255 void SetWithoutPathExpansion(StringPiece key,
256 std::unique_ptr<Value> in_value); 256 std::unique_ptr<Value> in_value);
257 // Deprecated version of the above. TODO(estade): remove.
258 void SetWithoutPathExpansion(StringPiece key, Value* in_value);
259 257
260 // Convenience forms of SetWithoutPathExpansion(). 258 // Convenience forms of SetWithoutPathExpansion().
261 void SetBooleanWithoutPathExpansion(StringPiece path, bool in_value); 259 void SetBooleanWithoutPathExpansion(StringPiece path, bool in_value);
262 void SetIntegerWithoutPathExpansion(StringPiece path, int in_value); 260 void SetIntegerWithoutPathExpansion(StringPiece path, int in_value);
263 void SetDoubleWithoutPathExpansion(StringPiece path, double in_value); 261 void SetDoubleWithoutPathExpansion(StringPiece path, double in_value);
264 void SetStringWithoutPathExpansion(StringPiece path, StringPiece in_value); 262 void SetStringWithoutPathExpansion(StringPiece path, StringPiece in_value);
265 void SetStringWithoutPathExpansion(StringPiece path, 263 void SetStringWithoutPathExpansion(StringPiece path,
266 const string16& in_value); 264 const string16& in_value);
267 265
268 // Gets the Value associated with the given path starting from this object. 266 // Gets the Value associated with the given path starting from this object.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 return out << static_cast<const Value&>(value); 530 return out << static_cast<const Value&>(value);
533 } 531 }
534 532
535 // Stream operator so that enum class Types can be used in log statements. 533 // Stream operator so that enum class Types can be used in log statements.
536 BASE_EXPORT std::ostream& operator<<(std::ostream& out, 534 BASE_EXPORT std::ostream& operator<<(std::ostream& out,
537 const Value::Type& type); 535 const Value::Type& type);
538 536
539 } // namespace base 537 } // namespace base
540 538
541 #endif // BASE_VALUES_H_ 539 #endif // BASE_VALUES_H_
OLDNEW
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698