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

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

Issue 10908145: Converted policy.PolicyTest.testDisableSPDY pyauto test to browser_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/net/net_pref_observer.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string>
9
10 #include "base/basictypes.h" 8 #include "base/basictypes.h"
11 #include "chrome/browser/api/prefs/pref_member.h" 9 #include "chrome/browser/api/prefs/pref_member.h"
12 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
13 11
14 namespace chrome_browser_net { 12 namespace chrome_browser_net {
15 class Predictor; 13 class Predictor;
16 } 14 }
17 15
18 namespace prerender { 16 namespace prerender {
19 class PrerenderManager; 17 class PrerenderManager;
(...skipping 15 matching lines...) Expand all
35 virtual ~NetPrefObserver(); 33 virtual ~NetPrefObserver();
36 34
37 // content::NotificationObserver 35 // content::NotificationObserver
38 virtual void Observe(int type, 36 virtual void Observe(int type,
39 const content::NotificationSource& source, 37 const content::NotificationSource& source,
40 const content::NotificationDetails& details) OVERRIDE; 38 const content::NotificationDetails& details) OVERRIDE;
41 39
42 static void RegisterPrefs(PrefService* prefs); 40 static void RegisterPrefs(PrefService* prefs);
43 41
44 private: 42 private:
45 // If |pref_name| is NULL, all monitored preferences will be applied. 43 void ApplySettings();
46 void ApplySettings(const std::string* pref_name);
47 44
48 BooleanPrefMember network_prediction_enabled_; 45 BooleanPrefMember network_prediction_enabled_;
49 BooleanPrefMember spdy_disabled_; 46 BooleanPrefMember spdy_disabled_;
50 prerender::PrerenderManager* prerender_manager_; 47 prerender::PrerenderManager* prerender_manager_;
51 chrome_browser_net::Predictor* predictor_; 48 chrome_browser_net::Predictor* predictor_;
52 49
53 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver); 50 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver);
54 }; 51 };
55 52
56 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ 53 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/net_pref_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698