| Index: chrome/browser/chromeos/login/owner_settings_service.h
|
| diff --git a/chrome/browser/chromeos/login/owner_settings_service.h b/chrome/browser/chromeos/login/owner_settings_service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2bbdf599565a7b1ba99f3f4fc0b514c9f15238ac
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/login/owner_settings_service.h
|
| @@ -0,0 +1,55 @@
|
| +// 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_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "base/macros.h"
|
| +#include "components/keyed_service/core/keyed_service.h"
|
| +
|
| +class Profile;
|
| +
|
| +namespace chromeos {
|
| +
|
| +class OwnerSettingsBaseService : public KeyedService {
|
| + public:
|
| + virtual ~OwnerSettingsBaseService();
|
| +
|
| + protected:
|
| + OwnerSettingsBaseService();
|
| +
|
| + virtual void ReloadOwnerKey();
|
| +
|
| + private:
|
| + friend class OwnerSettingsServiceFactory;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(OwnerSettingsBaseService);
|
| +};
|
| +
|
| +// This class reloads owner key from profile slots.
|
| +//
|
| +// TODO (ygorshenin@): move write path for device settings here
|
| +// (crbug.com/230018).
|
| +class OwnerSettingsService : public OwnerSettingsBaseService {
|
| + public:
|
| + virtual ~OwnerSettingsService();
|
| +
|
| + protected:
|
| + // OwnerSettingsBaseService overrides:
|
| + virtual void ReloadOwnerKey() OVERRIDE;
|
| +
|
| + private:
|
| + friend class OwnerSettingsServiceFactory;
|
| +
|
| + explicit OwnerSettingsService(Profile* profile);
|
| +
|
| + Profile* profile_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(OwnerSettingsService);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OWNER_SETTINGS_SERVICE_H_
|
|
|