Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / prefs / pref_hash_store_impl.h
index ee5c253..c648327 100644 (file)
@@ -52,6 +52,7 @@ class PrefHashStoreImpl : public PrefHashStore {
 
   // PrefHashStore implementation.
   virtual scoped_ptr<PrefHashStoreTransaction> BeginTransaction() OVERRIDE;
+  virtual void CommitPendingWrite() OVERRIDE;
 
   // Returns the current version of this hash store.
   StoreVersion GetCurrentVersion() const;
@@ -63,6 +64,10 @@ class PrefHashStoreImpl : public PrefHashStore {
   scoped_ptr<HashStoreContents> contents_;
   const bool initial_hashes_dictionary_trusted_;
 
+  // True if hashes have been modified since the last call to
+  // CommitPendingWriteIfRequired().
+  bool has_pending_write_;
+
   DISALLOW_COPY_AND_ASSIGN(PrefHashStoreImpl);
 };