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

Side by Side Diff: base/values.h

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « base/trace_event/trace_event_argument_unittest.cc ('k') | 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 21 matching lines...) Expand all
32 #include "base/macros.h" 32 #include "base/macros.h"
33 #include "base/memory/manual_constructor.h" 33 #include "base/memory/manual_constructor.h"
34 #include "base/strings/string16.h" 34 #include "base/strings/string16.h"
35 #include "base/strings/string_piece.h" 35 #include "base/strings/string_piece.h"
36 36
37 namespace base { 37 namespace base {
38 38
39 class DictionaryValue; 39 class DictionaryValue;
40 class ListValue; 40 class ListValue;
41 class Value; 41 class Value;
42 using FundamentalValue = Value;
43 using StringValue = Value; 42 using StringValue = Value;
44 using BinaryValue = Value; 43 using BinaryValue = Value;
45 44
46 // The Value class is the base class for Values. A Value can be instantiated 45 // The Value class is the base class for Values. A Value can be instantiated
47 // via the Create*Value() factory methods, or by directly creating instances of 46 // via the Create*Value() factory methods, or by directly creating instances of
48 // the subclasses. 47 // the subclasses.
49 // 48 //
50 // See the file-level comment above for more information. 49 // See the file-level comment above for more information.
51 class BASE_EXPORT Value { 50 class BASE_EXPORT Value {
52 public: 51 public:
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 return out << static_cast<const Value&>(value); 515 return out << static_cast<const Value&>(value);
517 } 516 }
518 517
519 // Stream operator so that enum class Types can be used in log statements. 518 // Stream operator so that enum class Types can be used in log statements.
520 BASE_EXPORT std::ostream& operator<<(std::ostream& out, 519 BASE_EXPORT std::ostream& operator<<(std::ostream& out,
521 const Value::Type& type); 520 const Value::Type& type);
522 521
523 } // namespace base 522 } // namespace base
524 523
525 #endif // BASE_VALUES_H_ 524 #endif // BASE_VALUES_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_argument_unittest.cc ('k') | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698