| OLD | NEW |
| 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_NET_NET_PREF_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ | 6 #define CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 const content::NotificationDetails& details) OVERRIDE; | 39 const content::NotificationDetails& details) OVERRIDE; |
| 40 | 40 |
| 41 static void RegisterPrefs(PrefService* prefs); | 41 static void RegisterPrefs(PrefService* prefs); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // If |pref_name| is NULL, all monitored preferences will be applied. | 44 // If |pref_name| is NULL, all monitored preferences will be applied. |
| 45 void ApplySettings(const std::string* pref_name); | 45 void ApplySettings(const std::string* pref_name); |
| 46 | 46 |
| 47 BooleanPrefMember network_prediction_enabled_; | 47 BooleanPrefMember network_prediction_enabled_; |
| 48 BooleanPrefMember spdy_disabled_; | 48 BooleanPrefMember spdy_disabled_; |
| 49 BooleanPrefMember http_throttling_enabled_; | |
| 50 prerender::PrerenderManager* prerender_manager_; | 49 prerender::PrerenderManager* prerender_manager_; |
| 51 chrome_browser_net::Predictor* predictor_; | 50 chrome_browser_net::Predictor* predictor_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver); | 52 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ | 55 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ |
| OLD | NEW |