blob: 23ee9ff30334130f52ff5edb416cfb0fb24e8fa6 [file] [log] [blame]
// Copyright 2016 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 COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#define COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_
#include "base/memory/scoped_ptr.h"
#include "components/prefs/pref_service.h"
namespace mojo {
class Connector;
}
class PrefRegistry;
namespace filesystem {
// This factory method creates a PrefService for the local process based on the
// preference registry passed in. This PrefService will synchronize with a JSON
// file in the mojo:filesystem.
scoped_ptr<PrefService> CreatePrefService(mojo::Connector* connector,
PrefRegistry* registry);
} // namespace filesystem
#endif // COMPONENTS_FILESYSTEM_PUBLIC_CPP_PREFS_PREF_SERVICE_FACTORY_H_