summaryrefslogtreecommitdiffstats
path: root/net/base/network_config_watcher_mac.h
Commit message (Collapse)AuthorAgeFilesLines
* Switch to standard integer types in net/.Avi Drissman2015-12-201-1/+1
| | | | | | | | | BUG=488550 TBR=mmenke@chromium.org Review URL: https://codereview.chromium.org/1535363003 . Cr-Commit-Position: refs/heads/master@{#366297}
* Split the initialisation of NeworkChangeNotifierMac.droger@google.com2012-01-111-1/+6
| | | | | | | | | | | | | The initialization function is split into two: - to register for SCNetworkReachability notifications, - to register for SCDynamicStore notifications. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9150002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117200 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup of Mac/Linux network change notifier code:mmenke@chromium.org2011-09-301-3/+2
| | | | | | | | | | | | | Add OVERRIDE, replace NewRunnableMethod with Bind, fix a couple includes. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8073027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103402 0039d316-1c4b-4281-b951-d872f2087c98
* Fix initial online state on Mac.adamk@chromium.org2011-09-021-0/+4
| | | | | | | | | | | | | Wait on a ConditionVariable before returning from IsCurrentlyOffline(), and Signal that CV once the initial state is set. R=eroman@chromium.org,mark@chromium.org BUG=86538 TEST=quit chrome, unplug network cable, start chrome with onlineTest.html (attached to the bug) on the commandline Review URL: http://codereview.chromium.org/7785021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99401 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DestructionObserver for NetworkConfigWatcherMac.willchan@chromium.org2010-10-231-14/+1
| | | | | | | | | | | Subclass base::Thread so we can control initialization and shutdown for the helper thread. BUG=59630 TEST=none Review URL: http://codereview.chromium.org/3986004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63650 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_cftyperef from base to base/mac, use the new namespace, and name itbrettw@chromium.org2010-10-171-2/+2
| | | | | | | | | | properly (scoped_cftyperef -> ScopedCFTypeRef). TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3855001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62887 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r58230.willchan@chromium.org2010-09-071-17/+19
| | | | | | | | | | | Simple 2-line fix. BUG=53138 TEST=Make sure ethernet is plugged in. Run Chrome. Unplug ethernet. Does not crash. Review URL: http://codereview.chromium.org/3371001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58736 0039d316-1c4b-4281-b951-d872f2087c98
* Fix NetworkChangeNotifier crashes on Mac.willchan@chromium.org2010-09-031-19/+17
| | | | | | | | | | Revert r58230. BUG=54305,53138 TEST=Make sure ethernet is plugged in. Run Chrome. Unplug ethernet. Does not crash. Review URL: http://codereview.chromium.org/3350009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58520 0039d316-1c4b-4281-b951-d872f2087c98
* Stop NetworkChangeNotifierMac from calling a virtual function before the ↵willchan@chromium.org2010-09-011-17/+19
| | | | | | | | | | | | | constructor finishes. NetworkChangeNotifierMac was posting a task to a separate thread in its constructor. It's possible (although highly unlikely, but happens on buildbots) for the separate thread to start up and run the task (which invokes a virtual function) before the constructor completes (and, more importantly, the subtype's constructor initializes its vtable entries which are NULL / pure virtual in the base class). The solution is to simply use a Delegate instead. The Delegate should have been fully constructed (and thus, will not have the vtable initialization race) before being passed into NetworkChangeWatcherMac's constructor. This also solves the stylistic issue of avoiding multiple inheritance, since NetworkConfigWatcherMac was not strictly an interface. BUG=53138 Review URL: http://codereview.chromium.org/3344002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58230 0039d316-1c4b-4281-b951-d872f2087c98
* Use notification-based API for getting system proxy settings on Mac rather ↵eroman@chromium.org2010-07-301-0/+65
than polling. BUG=50587 Review URL: http://codereview.chromium.org/3078009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54288 0039d316-1c4b-4281-b951-d872f2087c98