EME test page application.
[chromium-blink-merge.git] / chrome / browser / chromeos / prerender_condition_network.cc
blob9033f80c8590aab812c9b0b4ea5f80ef24d4315f
1 // Copyright (c) 2011 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.
5 #include "chrome/browser/chromeos/prerender_condition_network.h"
7 #include "chromeos/network/network_state.h"
8 #include "chromeos/network/network_state_handler.h"
9 #include "third_party/cros_system_api/dbus/service_constants.h"
11 namespace chromeos {
13 PrerenderConditionNetwork::PrerenderConditionNetwork() {
16 PrerenderConditionNetwork::~PrerenderConditionNetwork() {
19 bool PrerenderConditionNetwork::CanPrerender() const {
20 const NetworkState* default_network =
21 NetworkHandler::Get()->network_state_handler()->DefaultNetwork();
22 return default_network &&
23 !default_network->Matches(NetworkTypePattern::Mobile());
26 } // namespace chromeos