Chromium Code Reviews| Index: ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h |
| diff --git a/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3bd36bc0393a7eb1b2eaf0647f1b7a8f4dbe50b6 |
| --- /dev/null |
| +++ b/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2017 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_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H |
| +#define CHROME_BROWSER_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H |
| + |
| +#include "base/macros.h" |
| +#include "components/browser_sync/profile_sync_service.h" |
| +#include "ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h" |
| + |
| +namespace user_prefs { |
| +class PrefRegistrySyncable; |
| +} |
| + |
| +// // This class is responsible for creating a DesktopPromotionSyncObserver |
|
sdefresne
2017/01/30 16:45:54
nit: Remove one of the duplicated "//"
mrefaat
2017/01/30 17:27:06
Acknowledged.
|
| +// after the main browser state is initialized. |
| +// An object from this class should only be created by |
| +// DesktopPromotionSyncServiceFactory. |
| +class DesktopPromotionSyncService : public KeyedService { |
| + public: |
| + // Only the DesktopPromotionSyncServiceFactory and tests should call this. |
| + DesktopPromotionSyncService(PrefService* pref_service, |
| + browser_sync::ProfileSyncService* sync_service); |
| + |
| + ~DesktopPromotionSyncService() override; |
| + |
| + // Register profile specific desktop promotion related preferences. |
| + static void RegisterDesktopPromotionUserPrefs( |
| + user_prefs::PrefRegistrySyncable* registry); |
| + |
| + private: |
| + DesktopPromotionSyncObserver observer_; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_DESKTOP_PROMOTION_DESKTOP_PROMOTION_SYNC_SERVICE_H |