OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 10 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
| 11 |
| 12 // Tiny class that delegates to the common SyncSetupHandler used by both |
| 13 // old Options and new MD Settings. |
| 14 class SyncOptionsHandler : public options::OptionsPageUIHandler { |
| 15 public: |
| 16 explicit SyncOptionsHandler(content::WebUI* web_ui); |
| 17 ~SyncOptionsHandler() override; |
| 18 |
| 19 // OptionsPageUIHandler implementation. |
| 20 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
| 21 void RegisterMessages() override; |
| 22 |
| 23 protected: |
| 24 SyncSetupHandler sync_setup_handler_; |
| 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(SyncOptionsHandler); |
| 27 }; |
| 28 |
| 29 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_OPTIONS_HANDLER_H_ |
OLD | NEW |