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

Unified Diff: chrome/browser/prefs/tracked/dictionary_hash_store_contents.h

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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/browser/prefs/tracked/dictionary_hash_store_contents.h
diff --git a/chrome/browser/prefs/tracked/dictionary_hash_store_contents.h b/chrome/browser/prefs/tracked/dictionary_hash_store_contents.h
deleted file mode 100644
index fc29db59037b28e9f6934d40dde97eec062425c5..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/tracked/dictionary_hash_store_contents.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2014 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_TRACKED_DICTIONARY_HASH_STORE_CONTENTS_H_
-#define CHROME_BROWSER_PREFS_TRACKED_DICTIONARY_HASH_STORE_CONTENTS_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "chrome/browser/prefs/tracked/hash_store_contents.h"
-
-namespace base {
-class DictionaryValue;
-} // namespace base
-
-namespace user_prefs {
-class PrefRegistrySyncable;
-} // namespace user_prefs
-
-// Implements HashStoreContents by storing MACs in a DictionaryValue. The
-// DictionaryValue is presumed to be the contents of a PrefStore.
-// RegisterProfilePrefs() may be used to register all of the preferences used by
-// this object.
-class DictionaryHashStoreContents : public HashStoreContents {
- public:
- // Constructs a DictionaryHashStoreContents that reads from and writes to
- // |storage|.
- explicit DictionaryHashStoreContents(base::DictionaryValue* storage);
-
- // Registers required preferences.
- static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
-
- // HashStoreContents implementation
- std::string hash_store_id() const override;
- void Reset() override;
- bool IsInitialized() const override;
- const base::DictionaryValue* GetContents() const override;
- scoped_ptr<MutableDictionary> GetMutableContents() override;
- std::string GetSuperMac() const override;
- void SetSuperMac(const std::string& super_mac) override;
-
- private:
- base::DictionaryValue* storage_;
-
- DISALLOW_COPY_AND_ASSIGN(DictionaryHashStoreContents);
-};
-
-#endif // CHROME_BROWSER_PREFS_TRACKED_DICTIONARY_HASH_STORE_CONTENTS_H_
« no previous file with comments | « chrome/browser/prefs/tracked/device_id_win.cc ('k') | chrome/browser/prefs/tracked/dictionary_hash_store_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698