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

Side by Side Diff: chrome/browser/net/prediction_options.h

Issue 518973002: Remove CanPredictNetworkActionsUI from prediction_options.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in predictor.h. Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/net/prediction_options.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NET_PREDICTION_OPTIONS_H_ 5 #ifndef CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_
6 #define CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_ 6 #define CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_
7 7
8 namespace user_prefs { 8 namespace user_prefs {
9 class PrefRegistrySyncable; 9 class PrefRegistrySyncable;
10 } 10 }
(...skipping 22 matching lines...) Expand all
33 33
34 // The following two global functions determine whether prefetching 34 // The following two global functions determine whether prefetching
35 // and prerendering are enabled, based on preferences and network type. 35 // and prerendering are enabled, based on preferences and network type.
36 36
37 // To be executed on the IO thread only. 37 // To be executed on the IO thread only.
38 bool CanPrefetchAndPrerenderIO(ProfileIOData* profile_io_data); 38 bool CanPrefetchAndPrerenderIO(ProfileIOData* profile_io_data);
39 39
40 // To be executed on the UI thread only. 40 // To be executed on the UI thread only.
41 bool CanPrefetchAndPrerenderUI(PrefService* prefs); 41 bool CanPrefetchAndPrerenderUI(PrefService* prefs);
42 42
43 // TODO(bnc): remove the following function as soon as Android Chrome is
44 // modified to use CanPrefetchAndPrerenderUI instead.
45 bool CanPredictNetworkActionsUI(PrefService* prefs);
46
47 // The following two global functions determine whether TCP preconnect 43 // The following two global functions determine whether TCP preconnect
48 // and DNS preresolution are enabled, based on preferences. 44 // and DNS preresolution are enabled, based on preferences.
49 45
50 // To be executed on the IO thread only. 46 // To be executed on the IO thread only.
51 bool CanPreresolveAndPreconnectIO(ProfileIOData* profile_io_data); 47 bool CanPreresolveAndPreconnectIO(ProfileIOData* profile_io_data);
52 48
53 // To be executed on the UI thread only. 49 // To be executed on the UI thread only.
54 bool CanPreresolveAndPreconnectUI(PrefService* prefs); 50 bool CanPreresolveAndPreconnectUI(PrefService* prefs);
55 51
56 } // namespace chrome_browser_net 52 } // namespace chrome_browser_net
57 53
58 #endif // CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_ 54 #endif // CHROME_BROWSER_NET_PREDICTION_OPTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/prediction_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698