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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « chrome/browser/net/net_error_tab_helper.cc ('k') | 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/prefs/pref_member.h" 9 #include "components/prefs/pref_member.h"
10 10
11 class PrefService; 11 class PrefService;
12 12
13 namespace user_prefs { 13 namespace user_prefs {
14 class PrefRegistrySyncable; 14 class PrefRegistrySyncable;
15 } 15 }
16 16
17 // Monitors network-related preferences for changes and applies them. 17 // Monitors network-related preferences for changes and applies them.
18 // The supplied PrefService must outlive this NetPrefObserver. 18 // The supplied PrefService must outlive this NetPrefObserver.
19 // Must be used only on the UI thread. 19 // Must be used only on the UI thread.
20 class NetPrefObserver { 20 class NetPrefObserver {
21 public: 21 public:
22 // |prefs| must be non-NULL and |*prefs| must outlive this. 22 // |prefs| must be non-NULL and |*prefs| must outlive this.
23 explicit NetPrefObserver(PrefService* prefs); 23 explicit NetPrefObserver(PrefService* prefs);
24 virtual ~NetPrefObserver(); 24 virtual ~NetPrefObserver();
25 25
26 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 26 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
27 27
28 private: 28 private:
29 void ApplySettings(); 29 void ApplySettings();
30 30
31 BooleanPrefMember spdy_disabled_; 31 BooleanPrefMember spdy_disabled_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver); 33 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver);
34 }; 34 };
35 35
36 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_ 36 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/net_error_tab_helper.cc ('k') | chrome/browser/net/net_pref_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698