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

Side by Side Diff: base/values.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/value_conversions.h ('k') | base/version.h » ('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 setting and other persistable data. It includes the ability to 6 // storing setting and other persistable data. It includes the ability to
7 // specify (recursive) lists and dictionaries, so it's fairly expressive. 7 // specify (recursive) lists and dictionaries, so it's fairly expressive.
8 // However, the API is optimized for the common case, namely storing a 8 // However, the API is optimized for the common case, namely storing a
9 // hierarchical tree of simple values. Given a DictionaryValue root, you can 9 // hierarchical tree of simple values. Given a DictionaryValue root, you can
10 // easily do things like: 10 // easily do things like:
11 // 11 //
12 // root->SetString("global.pages.homepage", "http://goateleporter.com"); 12 // root->SetString("global.pages.homepage", "http://goateleporter.com");
13 // std::string homepage = "http://google.com"; // default/fallback value 13 // std::string homepage = "http://google.com"; // default/fallback value
14 // root->GetString("global.pages.homepage", &homepage); 14 // root->GetString("global.pages.homepage", &homepage);
15 // 15 //
16 // where "global" and "pages" are also DictionaryValues, and "homepage" is a 16 // where "global" and "pages" are also DictionaryValues, and "homepage" is a
17 // string setting. If some elements of the path didn't exist yet, the 17 // string setting. If some elements of the path didn't exist yet, the
18 // SetString() method would create the missing elements and attach them to root 18 // SetString() method would create the missing elements and attach them to root
19 // before attaching the homepage value. 19 // before attaching the homepage value.
20 20
21 #ifndef BASE_VALUES_H_ 21 #ifndef BASE_VALUES_H_
22 #define BASE_VALUES_H_ 22 #define BASE_VALUES_H_
23 #pragma once
24 23
25 #include <iterator> 24 #include <iterator>
26 #include <map> 25 #include <map>
27 #include <string> 26 #include <string>
28 #include <vector> 27 #include <vector>
29 28
30 #include "base/base_export.h" 29 #include "base/base_export.h"
31 #include "base/basictypes.h" 30 #include "base/basictypes.h"
32 #include "base/compiler_specific.h" 31 #include "base/compiler_specific.h"
33 #include "base/string16.h" 32 #include "base/string16.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 492
494 } // namespace base 493 } // namespace base
495 494
496 // http://crbug.com/88666 495 // http://crbug.com/88666
497 using base::DictionaryValue; 496 using base::DictionaryValue;
498 using base::ListValue; 497 using base::ListValue;
499 using base::StringValue; 498 using base::StringValue;
500 using base::Value; 499 using base::Value;
501 500
502 #endif // BASE_VALUES_H_ 501 #endif // BASE_VALUES_H_
OLDNEW
« no previous file with comments | « base/value_conversions.h ('k') | base/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698