Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2128)

Unified Diff: chrome/browser/chromeos/prerender_condition_network.h

Issue 7517016: Add prerender to ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/prerender_condition_network.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3d1b8348045e98bca7e8766c6b32c242b198ebe0
--- /dev/null
+++ b/chrome/browser/chromeos/prerender_condition_network.h
@@ -0,0 +1,28 @@
+// 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 "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;
dominich 2011/07/27 17:27:43 OVERRIDE
cbentzel 2011/07/27 17:47:09 In this case it's a pure virtual function it's ove
+
+ private:
+ NetworkLibrary* network_library_;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/prerender_condition_network.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698