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

Side by Side Diff: chrome/browser/chromeos/prerender_condition_network.h

Issue 16272002: [Chrome OS] Make PrerenderConditionNetwork use NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm obsolete comment Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/prerender_condition_network.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
6 #define CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ 6 #define CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/cros/network_library.h"
10 #include "chrome/browser/prerender/prerender_condition.h" 9 #include "chrome/browser/prerender/prerender_condition.h"
11 10
12 namespace chromeos { 11 namespace chromeos {
13 12
14 class PrerenderConditionNetwork : public prerender::PrerenderCondition { 13 class PrerenderConditionNetwork : public prerender::PrerenderCondition {
15 public: 14 public:
16 // |network_library| must be non-NULL and live longer than |this|. 15 PrerenderConditionNetwork();
17 explicit PrerenderConditionNetwork(NetworkLibrary* network_library);
18 virtual ~PrerenderConditionNetwork(); 16 virtual ~PrerenderConditionNetwork();
19 17
20 // prerender::PrerenderCondition 18 // prerender::PrerenderCondition
21 virtual bool CanPrerender() const OVERRIDE; 19 virtual bool CanPrerender() const OVERRIDE;
22
23 private:
24 NetworkLibrary* network_library_;
25 }; 20 };
26 21
27 } // namespace chromeos 22 } // namespace chromeos
28 23
29 #endif // CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_ 24 #endif // CHROME_BROWSER_CHROMEOS_PRERENDER_CONDITION_NETWORK_H_
OLDNEW
« 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