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

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

Issue 18152002: Use a direct include of time headers in content/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains the class definitions for the CoreLocation data provider 5 // This file contains the class definitions for the CoreLocation data provider
6 // class and the accompanying Objective C wrapper class. This data provider 6 // class and the accompanying Objective C wrapper class. This data provider
7 // is used to allow the CoreLocation wrapper to run on the UI thread, since 7 // is used to allow the CoreLocation wrapper to run on the UI thread, since
8 // CLLocationManager's start and stop updating methods must be called from a 8 // CLLocationManager's start and stop updating methods must be called from a
9 // thread with an active NSRunLoop. Currently only the UI thread appears to 9 // thread with an active NSRunLoop. Currently only the UI thread appears to
10 // fill that requirement. 10 // fill that requirement.
11 11
12 #include "content/browser/geolocation/core_location_data_provider_mac.h" 12 #include "content/browser/geolocation/core_location_data_provider_mac.h"
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/time.h" 16 #include "base/time/time.h"
17 #include "content/browser/geolocation/core_location_provider_mac.h" 17 #include "content/browser/geolocation/core_location_provider_mac.h"
18 #include "content/browser/geolocation/geolocation_provider_impl.h" 18 #include "content/browser/geolocation/geolocation_provider_impl.h"
19 19
20 using content::CoreLocationDataProviderMac; 20 using content::CoreLocationDataProviderMac;
21 using content::Geoposition; 21 using content::Geoposition;
22 22
23 // A few required declarations since the CoreLocation headers are not available 23 // A few required declarations since the CoreLocation headers are not available
24 // with the Mac OS X 10.5 SDK. 24 // with the Mac OS X 10.5 SDK.
25 // TODO(jorgevillatoro): Remove these declarations when we build against 10.6 25 // TODO(jorgevillatoro): Remove these declarations when we build against 10.6
26 26
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 void CoreLocationDataProviderMac::PositionUpdated(Geoposition position) { 249 void CoreLocationDataProviderMac::PositionUpdated(Geoposition position) {
250 DCHECK(base::MessageLoop::current() == 250 DCHECK(base::MessageLoop::current() ==
251 GeolocationProviderImpl::GetInstance()->message_loop()); 251 GeolocationProviderImpl::GetInstance()->message_loop());
252 if (provider_) 252 if (provider_)
253 provider_->SetPosition(&position); 253 provider_->SetPosition(&position);
254 } 254 }
255 255
256 } // namespace content 256 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698