| Index: chrome/browser/prefs/pref_registry_simple.h
|
| diff --git a/chrome/browser/prefs/pref_registry_simple.h b/chrome/browser/prefs/pref_registry_simple.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e6c7af45c8906476836a87308a392119d5346e5
|
| --- /dev/null
|
| +++ b/chrome/browser/prefs/pref_registry_simple.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_
|
| +#define CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/browser/prefs/pref_registry.h"
|
| +
|
| +namespace base {
|
| +class DictionaryValue;
|
| +class ListValue;
|
| +}
|
| +
|
| +class FilePath;
|
| +
|
| +// A simple implementation of PrefRegistry.
|
| +class PrefRegistrySimple : public PrefRegistry {
|
| + public:
|
| + PrefRegistrySimple();
|
| +
|
| + void RegisterBooleanPref(const char* path, bool default_value);
|
| + void RegisterIntegerPref(const char* path, int default_value);
|
| + void RegisterDoublePref(const char* path, double default_value);
|
| + void RegisterStringPref(const char* path, const std::string& default_value);
|
| + void RegisterFilePathPref(const char* path, const FilePath& default_value);
|
| + void RegisterListPref(const char* path);
|
| + void RegisterDictionaryPref(const char* path);
|
| + void RegisterListPref(const char* path, base::ListValue* default_value);
|
| + void RegisterDictionaryPref(const char* path,
|
| + base::DictionaryValue* default_value);
|
| + void RegisterInt64Pref(const char* path,
|
| + int64 default_value);
|
| +
|
| + private:
|
| + virtual ~PrefRegistrySimple();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PrefRegistrySimple);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_PREFS_PREF_REGISTRY_SIMPLE_H_
|
|
|