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

Side by Side Diff: net/base/network_config_watcher_mac.cc

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « net/base/network_change_notifier_linux.cc ('k') | net/base/ssl_config_service_win.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "net/base/network_config_watcher_mac.h" 5 #include "net/base/network_config_watcher_mac.h"
6 6
7 #include <SystemConfiguration/SCDynamicStoreKey.h> 7 #include <SystemConfiguration/SCDynamicStoreKey.h>
8 #include <SystemConfiguration/SCSchemaDefinitions.h> 8 #include <SystemConfiguration/SCSchemaDefinitions.h>
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 namespace { 17 namespace {
18 18
19 // Called back by OS. Calls OnNetworkConfigChange(). 19 // Called back by OS. Calls OnNetworkConfigChange().
20 void DynamicStoreCallback(SCDynamicStoreRef /* store */, 20 void DynamicStoreCallback(SCDynamicStoreRef /* store */,
21 CFArrayRef changed_keys, 21 CFArrayRef changed_keys,
22 void* config_delegate) { 22 void* config_delegate) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // We create this notifier thread because the notification implementation 104 // We create this notifier thread because the notification implementation
105 // needs a thread with a CFRunLoop, and there's no guarantee that 105 // needs a thread with a CFRunLoop, and there's no guarantee that
106 // MessageLoop::current() meets that criterion. 106 // MessageLoop::current() meets that criterion.
107 base::Thread::Options thread_options(MessageLoop::TYPE_UI, 0); 107 base::Thread::Options thread_options(MessageLoop::TYPE_UI, 0);
108 notifier_thread_->StartWithOptions(thread_options); 108 notifier_thread_->StartWithOptions(thread_options);
109 } 109 }
110 110
111 NetworkConfigWatcherMac::~NetworkConfigWatcherMac() {} 111 NetworkConfigWatcherMac::~NetworkConfigWatcherMac() {}
112 112
113 } // namespace net 113 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_change_notifier_linux.cc ('k') | net/base/ssl_config_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698