| Index: chrome/browser/chromeos/prerender_condition_network.h
|
| diff --git a/chrome/browser/chromeos/prerender_condition_network.h b/chrome/browser/chromeos/prerender_condition_network.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f7f30450a92da9a5af802ffef116b268cecf0cb4
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/prerender_condition_network.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
|
| +#define CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/browser/chromeos/cros/network_library.h"
|
| +#include "chrome/browser/prerender/prerender_condition.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +class PrerenderConditionNetwork : public prerender::PrerenderCondition {
|
| + public:
|
| + // |network_library| must be non-NULL and live longer than |this|.
|
| + explicit PrerenderConditionNetwork(NetworkLibrary* network_library);
|
| + virtual ~PrerenderConditionNetwork();
|
| +
|
| + // prerender::PrerenderCondition
|
| + virtual bool CanPrerender() const OVERRIDE;
|
| +
|
| + private:
|
| + NetworkLibrary* network_library_;
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
|
|
|