#ifndef CHROMEOS_NETWORK_NETWORK_HANDLER_H_
#define CHROMEOS_NETWORK_NETWORK_HANDLER_H_
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop_proxy.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
class ClientCertResolver;
class GeolocationHandler;
class ManagedNetworkConfigurationHandler;
class ManagedNetworkConfigurationHandlerImpl;
class NetworkActivationHandler;
class NetworkCertMigrator;
class NetworkConfigurationHandler;
class NetworkConnectionHandler;
class NetworkDeviceHandler;
class NetworkDeviceHandlerImpl;
class NetworkProfileHandler;
class NetworkStateHandler;
class NetworkSmsHandler;
class CHROMEOS_EXPORT NetworkHandler {
public:
static void Initialize();
static void Shutdown();
static NetworkHandler* Get();
static bool IsInitialized();
base::MessageLoopProxy* message_loop() { return message_loop_.get(); }
NetworkStateHandler* network_state_handler();
NetworkDeviceHandler* network_device_handler();
NetworkProfileHandler* network_profile_handler();
NetworkConfigurationHandler* network_configuration_handler();
ManagedNetworkConfigurationHandler* managed_network_configuration_handler();
NetworkActivationHandler* network_activation_handler();
NetworkConnectionHandler* network_connection_handler();
NetworkSmsHandler* network_sms_handler();
GeolocationHandler* geolocation_handler();
private:
NetworkHandler();
virtual ~NetworkHandler();
void Init();
scoped_refptr<base::MessageLoopProxy> message_loop_;
scoped_ptr<NetworkStateHandler> network_state_handler_;
scoped_ptr<NetworkDeviceHandlerImpl> network_device_handler_;
scoped_ptr<NetworkProfileHandler> network_profile_handler_;
scoped_ptr<NetworkConfigurationHandler> network_configuration_handler_;
scoped_ptr<ManagedNetworkConfigurationHandlerImpl>
managed_network_configuration_handler_;
scoped_ptr<NetworkCertMigrator> network_cert_migrator_;
scoped_ptr<ClientCertResolver> client_cert_resolver_;
scoped_ptr<NetworkActivationHandler> network_activation_handler_;
scoped_ptr<NetworkConnectionHandler> network_connection_handler_;
scoped_ptr<NetworkSmsHandler> network_sms_handler_;
scoped_ptr<GeolocationHandler> geolocation_handler_;
DISALLOW_COPY_AND_ASSIGN(NetworkHandler);
};
}
#endif