Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / prefs / pref_hash_store.h
bloba6d97277b70b61acf57a3e3a9d64dd79bd2be7db
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_
6 #define CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_
8 #include "base/memory/scoped_ptr.h"
10 class PrefHashStoreTransaction;
12 // Stores hashes of and verifies preference values via
13 // PrefHashStoreTransactions.
14 class PrefHashStore {
15 public:
16 virtual ~PrefHashStore() {}
18 // Returns a PrefHashStoreTransaction which can be used to perform a series
19 // of checks/transformations on the hash store.
20 virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction() = 0;
22 // Commits this store to disk if it has changed since the last call to this
23 // method.
24 virtual void CommitPendingWrite() = 0;
27 #endif // CHROME_BROWSER_PREFS_PREF_HASH_STORE_H_