temp_scoped_dir_cleaner.h 685 B

123456789101112131415161718
  1. // Copyright 2017 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.
  4. #ifndef SERVICES_PREFERENCES_TRACKED_TEMP_SCOPED_DIR_CLEANER_H_
  5. #define SERVICES_PREFERENCES_TRACKED_TEMP_SCOPED_DIR_CLEANER_H_
  6. #include "base/memory/ref_counted.h"
  7. // Helper object to clear additional data for scoped temporary pref stores.
  8. class TempScopedDirCleaner
  9. : public base::RefCountedThreadSafe<TempScopedDirCleaner> {
  10. protected:
  11. friend class base::RefCountedThreadSafe<TempScopedDirCleaner>;
  12. virtual ~TempScopedDirCleaner() {}
  13. };
  14. #endif // SERVICES_PREFERENCES_TRACKED_TEMP_SCOPED_DIR_CLEANER_H_