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

Side by Side Diff: chrome/browser/chromeos/net/network_pref_state_observer.h

Issue 2446893008: NetworkHandler: Add ui_proxy_config_service (Closed)
Patch Set: More Feedback, reduce churn. Created 4 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_PREF_STATE_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PREF_STATE_OBSERVER_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11
12 class Profile;
13
14 namespace chromeos {
15
16 // Class to update NetworkHandler when the PrefService state changes. The
17 // implementation currently relies on g_browser_process since it holds the
18 // default PrefService.
19 class NetworkPrefStateObserver : public content::NotificationObserver {
20 public:
21 NetworkPrefStateObserver();
22 ~NetworkPrefStateObserver() override;
23
24 // content::NotificationObserver
25 void Observe(int type,
26 const content::NotificationSource& source,
emaxx 2016/11/02 18:18:05 nit: #include "content/public/browser/notification
stevenjb 2016/11/02 19:47:33 Not actually necessary. This is overriding a Notif
27 const content::NotificationDetails& details) override;
emaxx 2016/11/02 18:18:05 nit: #include "content/public/browser/notification
stevenjb 2016/11/02 19:47:33 Ditto.
28
29 private:
30 void InitializeNetworkPrefServices(Profile* profile);
31
32 content::NotificationRegistrar notification_registrar_;
33
34 DISALLOW_COPY_AND_ASSIGN(NetworkPrefStateObserver);
35 };
36
37 } // namespace chromeos
38
39 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PREF_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698