| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/chromeos/cros/network_library.h" |
| 10 #include "chrome/browser/prerender/prerender_condition.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 class PrerenderConditionNetwork : public prerender::PrerenderCondition { |
| 15 public: |
| 16 // |network_library| must be non-NULL and live longer than |this|. |
| 17 explicit PrerenderConditionNetwork(NetworkLibrary* network_library); |
| 18 virtual ~PrerenderConditionNetwork(); |
| 19 |
| 20 // prerender::PrerenderCondition |
| 21 virtual bool CanPrerender() const OVERRIDE; |
| 22 |
| 23 private: |
| 24 NetworkLibrary* network_library_; |
| 25 }; |
| 26 |
| 27 } // namespace chromeos |
| 28 |
| 29 #endif // CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ |
| OLD | NEW |