| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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 | |
| 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/dom_ui/options/options_ui.h" | |
| 10 | |
| 11 // Chrome sync options page UI handler. | |
| 12 // TODO(jhawkins): Move the meat of this class to PersonalOptionsHandler. | |
| 13 class SyncOptionsHandler : public OptionsPageUIHandler { | |
| 14 public: | |
| 15 SyncOptionsHandler(); | |
| 16 virtual ~SyncOptionsHandler(); | |
| 17 | |
| 18 // OptionsUIHandler implementation. | |
| 19 virtual bool IsEnabled(); | |
| 20 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | |
| 21 virtual void Initialize(); | |
| 22 virtual void RegisterMessages(); | |
| 23 | |
| 24 private: | |
| 25 // Called when the user updates the set of enabled data types to sync. |args| | |
| 26 // is ignored. | |
| 27 void OnPreferredDataTypesUpdated(const ListValue* args); | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(SyncOptionsHandler); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ | |
| OLD | NEW |