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

Side by Side Diff: content/browser/geolocation/wifi_data_provider_corewlan_mac.mm

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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
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 // Implements a WLAN API binding for CoreWLAN, as available on OSX 10.6 5 // Implements a WLAN API binding for CoreWLAN, as available on OSX 10.6
6 6
7 #include "chrome/browser/geolocation/wifi_data_provider_mac.h" 7 #include "content/browser/geolocation/wifi_data_provider_mac.h"
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #import <Foundation/Foundation.h> 10 #import <Foundation/Foundation.h>
11 11
12 #include "base/mac/scoped_nsautorelease_pool.h" 12 #include "base/mac/scoped_nsautorelease_pool.h"
13 #include "base/scoped_nsobject.h" 13 #include "base/scoped_nsobject.h"
14 #include "base/sys_string_conversions.h" 14 #include "base/sys_string_conversions.h"
15 15
16 // Define a subset of the CoreWLAN interfaces we require. We can't depend on 16 // Define a subset of the CoreWLAN interfaces we require. We can't depend on
17 // CoreWLAN.h existing as we need to build on 10.5 SDKs. We can't just send 17 // CoreWLAN.h existing as we need to build on 10.5 SDKs. We can't just send
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 [supported_interfaces count] > interface_error_count; 153 [supported_interfaces count] > interface_error_count;
154 } 154 }
155 155
156 WifiDataProviderCommon::WlanApiInterface* NewCoreWlanApi() { 156 WifiDataProviderCommon::WlanApiInterface* NewCoreWlanApi() {
157 scoped_ptr<CoreWlanApi> self(new CoreWlanApi); 157 scoped_ptr<CoreWlanApi> self(new CoreWlanApi);
158 if (self->Init()) 158 if (self->Init())
159 return self.release(); 159 return self.release();
160 160
161 return NULL; 161 return NULL;
162 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698