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

Unified Diff: chrome/common/ini_parser.h

Issue 453703002: Move ini_parser from base to chrome/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 years, 4 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/common/ini_parser.h
diff --git a/base/ini_parser.h b/chrome/common/ini_parser.h
similarity index 89%
rename from base/ini_parser.h
rename to chrome/common/ini_parser.h
index 0aa7754d34d8020fa2ae57ce3b92ca97df9dc6b9..e261146c4f1b53c17675dd423e3250418ad539ba 100644
--- a/base/ini_parser.h
+++ b/chrome/common/ini_parser.h
@@ -2,17 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_INI_PARSER_H_
-#define BASE_INI_PARSER_H_
+#ifndef CHROME_COMMON_INI_PARSER_H_
+#define CHROME_COMMON_INI_PARSER_H_
#include <string>
-#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/values.h"
-namespace base {
-
// Parses INI files in a string. Users should in inherit from this class.
// This is a very basic INI parser with these characteristics:
// - Ignores blank lines.
@@ -28,7 +25,7 @@ namespace base {
// - Key value pairs are indicated with an '=' character. Whitespace is not
// ignored. Quoting is not supported. Everything before the first '='
// is considered the |key|, and everything after is the |value|.
-class BASE_EXPORT INIParser {
+class INIParser {
public:
INIParser();
virtual ~INIParser();
@@ -46,7 +43,7 @@ class BASE_EXPORT INIParser {
// Parsed values are stored as strings at the "section.key" path. Triplets with
// |section| or |key| parameters containing '.' are ignored.
-class BASE_EXPORT DictionaryValueINIParser : public INIParser {
+class DictionaryValueINIParser : public INIParser {
public:
DictionaryValueINIParser();
virtual ~DictionaryValueINIParser();
@@ -64,6 +61,4 @@ class BASE_EXPORT DictionaryValueINIParser : public INIParser {
DISALLOW_COPY_AND_ASSIGN(DictionaryValueINIParser);
};
-} // namespace base
-
-#endif // BASE_INI_PARSER_H_
+#endif // CHROME_COMMON_INI_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698