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

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

Issue 238433003: Provide Shill IP Address to myIpAddress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2014 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_CHROME_NETWORK_WATCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_CHROME_NETWORK_WATCHER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "chromeos/network/network_state_handler_observer.h"
12
13 namespace chromeos {
14
15 // Chrome specific glue class to observe NetworkStateHandler and handle any
16 // necessary updates to net:: on the correct thread.
17 class ChromeNetworkWatcher : public NetworkStateHandlerObserver {
18 public:
19 ChromeNetworkWatcher();
20 virtual ~ChromeNetworkWatcher();
21
22 // NetworkStateHandlerObserver
23 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE;
24
25 private:
26 std::string last_ipv4_address_;
27
28 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkWatcher);
29 };
30
31 } // namespace chromeos
32
33 #endif // CHROME_BROWSER_CHROMEOS_NET_CHROME_NETWORK_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698