| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 namespace policy { | 51 namespace policy { |
| 52 class PolicyChangeRegistrar; | 52 class PolicyChangeRegistrar; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace options { | 55 namespace options { |
| 56 | 56 |
| 57 // Chrome browser options page UI handler. | 57 // Chrome browser options page UI handler. |
| 58 class BrowserOptionsHandler | 58 class BrowserOptionsHandler |
| 59 : public OptionsPageUIHandler, | 59 : public OptionsPageUIHandler, |
| 60 public ProfileAttributesStorage::Observer, | 60 public ProfileAttributesStorage::Observer, |
| 61 public sync_driver::SyncServiceObserver, | 61 public syncer::SyncServiceObserver, |
| 62 public SigninManagerBase::Observer, | 62 public SigninManagerBase::Observer, |
| 63 public ui::SelectFileDialog::Listener, | 63 public ui::SelectFileDialog::Listener, |
| 64 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
| 65 public chromeos::system::PointerDeviceObserver::Observer, | 65 public chromeos::system::PointerDeviceObserver::Observer, |
| 66 public ArcAppListPrefs::Observer, | 66 public ArcAppListPrefs::Observer, |
| 67 #endif | 67 #endif |
| 68 public TemplateURLServiceObserver, | 68 public TemplateURLServiceObserver, |
| 69 public extensions::ExtensionRegistryObserver, | 69 public extensions::ExtensionRegistryObserver, |
| 70 public content::NotificationObserver, | 70 public content::NotificationObserver, |
| 71 public policy::PolicyService::Observer { | 71 public policy::PolicyService::Observer { |
| 72 public: | 72 public: |
| 73 BrowserOptionsHandler(); | 73 BrowserOptionsHandler(); |
| 74 ~BrowserOptionsHandler() override; | 74 ~BrowserOptionsHandler() override; |
| 75 | 75 |
| 76 // OptionsPageUIHandler implementation. | 76 // OptionsPageUIHandler implementation. |
| 77 void GetLocalizedValues(base::DictionaryValue* values) override; | 77 void GetLocalizedValues(base::DictionaryValue* values) override; |
| 78 void PageLoadStarted() override; | 78 void PageLoadStarted() override; |
| 79 void InitializeHandler() override; | 79 void InitializeHandler() override; |
| 80 void InitializePage() override; | 80 void InitializePage() override; |
| 81 void RegisterMessages() override; | 81 void RegisterMessages() override; |
| 82 void Uninitialize() override; | 82 void Uninitialize() override; |
| 83 | 83 |
| 84 // sync_driver::SyncServiceObserver implementation. | 84 // syncer::SyncServiceObserver implementation. |
| 85 void OnStateChanged() override; | 85 void OnStateChanged() override; |
| 86 | 86 |
| 87 // SigninManagerBase::Observer implementation. | 87 // SigninManagerBase::Observer implementation. |
| 88 void GoogleSigninSucceeded(const std::string& account_id, | 88 void GoogleSigninSucceeded(const std::string& account_id, |
| 89 const std::string& username, | 89 const std::string& username, |
| 90 const std::string& password) override; | 90 const std::string& password) override; |
| 91 void GoogleSignedOut(const std::string& account_id, | 91 void GoogleSignedOut(const std::string& account_id, |
| 92 const std::string& username) override; | 92 const std::string& username) override; |
| 93 | 93 |
| 94 // TemplateURLServiceObserver implementation. | 94 // TemplateURLServiceObserver implementation. |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 | 429 |
| 430 // Used to get WeakPtr to self for use on the UI thread. | 430 // Used to get WeakPtr to self for use on the UI thread. |
| 431 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 431 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 432 | 432 |
| 433 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 433 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 434 }; | 434 }; |
| 435 | 435 |
| 436 } // namespace options | 436 } // namespace options |
| 437 | 437 |
| 438 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 438 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |