BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / net / net_pref_observer.h
blob17316e217180277666803450a88e101da341475a
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_
6 #define CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_
8 #include "base/macros.h"
9 #include "base/prefs/pref_member.h"
11 class PrefService;
13 namespace user_prefs {
14 class PrefRegistrySyncable;
17 // Monitors network-related preferences for changes and applies them.
18 // The supplied PrefService must outlive this NetPrefObserver.
19 // Must be used only on the UI thread.
20 class NetPrefObserver {
21 public:
22 // |prefs| must be non-NULL and |*prefs| must outlive this.
23 explicit NetPrefObserver(PrefService* prefs);
24 virtual ~NetPrefObserver();
26 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
28 private:
29 void ApplySettings();
31 BooleanPrefMember spdy_disabled_;
33 DISALLOW_COPY_AND_ASSIGN(NetPrefObserver);
36 #endif // CHROME_BROWSER_NET_NET_PREF_OBSERVER_H_