| Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
|
| index b6ff3403c3bae539c35f43586e40153edf9fc67f..ab542f46e70e67ad715696951ce542e1fc9d8965 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
|
| +++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "chrome/browser/ui/webui/options/options_ui.h"
|
| #include "chromeos/network/network_state_handler_observer.h"
|
| +#include "extensions/browser/extension_registry_observer.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| class Browser;
|
| @@ -34,9 +35,9 @@ namespace chromeos {
|
| namespace options {
|
|
|
| // ChromeOS internet options page UI handler.
|
| -class InternetOptionsHandler
|
| - : public ::options::OptionsPageUIHandler,
|
| - public chromeos::NetworkStateHandlerObserver {
|
| +class InternetOptionsHandler : public ::options::OptionsPageUIHandler,
|
| + public chromeos::NetworkStateHandlerObserver,
|
| + public extensions::ExtensionRegistryObserver {
|
| public:
|
| InternetOptionsHandler();
|
| ~InternetOptionsHandler() override;
|
| @@ -49,11 +50,21 @@ class InternetOptionsHandler
|
| // WebUIMessageHandler (from OptionsPageUIHandler)
|
| void RegisterMessages() override;
|
|
|
| + // ExtensionRegistryObserver
|
| + void OnExtensionLoaded(content::BrowserContext* browser_context,
|
| + const extensions::Extension* extension) override;
|
| + void OnExtensionUnloaded(
|
| + content::BrowserContext* browser_context,
|
| + const extensions::Extension* extension,
|
| + extensions::UnloadedExtensionInfo::Reason reason) override;
|
| + void OnShutdown(extensions::ExtensionRegistry* registry) override;
|
| +
|
| // Callbacks to set network state properties.
|
| void ShowMorePlanInfoCallback(const base::ListValue* args);
|
| void CarrierStatusCallback();
|
| void SetCarrierCallback(const base::ListValue* args);
|
| void SimOperationCallback(const base::ListValue* args);
|
| + void UpdateVPNProvidersCallback(const base::ListValue* args);
|
|
|
| // Sets details_guid_ for event forwarding.
|
| void SetNetworkGuidCallback(const base::ListValue* args);
|
| @@ -63,6 +74,9 @@ class InternetOptionsHandler
|
| void StartConnectCallback(const base::ListValue* args);
|
| void SetPropertiesCallback(const base::ListValue* args);
|
|
|
| + // Updates the list of VPN providers enabled in the primary user's profile.
|
| + void UpdateVPNProviders();
|
| +
|
| // Refreshes the display of network information.
|
| void RefreshNetworkData();
|
|
|
|
|