This source file includes following definitions.
- CanPrerender
#include "chrome/browser/chromeos/prerender_condition_network.h"
#include "chromeos/network/network_state.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/shill_property_util.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
namespace chromeos {
PrerenderConditionNetwork::PrerenderConditionNetwork() {
}
PrerenderConditionNetwork::~PrerenderConditionNetwork() {
}
bool PrerenderConditionNetwork::CanPrerender() const {
const NetworkState* default_network =
NetworkHandler::Get()->network_state_handler()->DefaultNetwork();
return default_network &&
!default_network->Matches(NetworkTypePattern::Mobile());
}
}