| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/geolocation/arbitrator_dependency_factory.h" | 5 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
| 6 | 6 |
| 7 #include "content/browser/content_browser_client.h" | 7 #include "content/browser/content_browser_client.h" |
| 8 #include "content/browser/geolocation/access_token_store.h" | 8 #include "content/browser/geolocation/access_token_store.h" |
| 9 #include "content/browser/geolocation/location_provider.h" | 9 #include "content/browser/geolocation/location_provider.h" |
| 10 #include "content/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
| 11 | 11 |
| 12 // GeolocationArbitratorDependencyFactory | 12 // GeolocationArbitratorDependencyFactory |
| 13 GeolocationArbitratorDependencyFactory:: | 13 GeolocationArbitratorDependencyFactory:: |
| 14 ~GeolocationArbitratorDependencyFactory() { | 14 ~GeolocationArbitratorDependencyFactory() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 // DefaultGeolocationArbitratorDependencyFactory | 17 // DefaultGeolocationArbitratorDependencyFactory |
| 18 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow | 18 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow |
| 19 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { | 19 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { |
| 20 return base::Time::Now; | 20 return base::Time::Now; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 const GURL& url, | 32 const GURL& url, |
| 33 const string16& access_token) { | 33 const string16& access_token) { |
| 34 return ::NewNetworkLocationProvider(access_token_store, context, | 34 return ::NewNetworkLocationProvider(access_token_store, context, |
| 35 url, access_token); | 35 url, access_token); |
| 36 } | 36 } |
| 37 | 37 |
| 38 LocationProviderBase* | 38 LocationProviderBase* |
| 39 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { | 39 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { |
| 40 return ::NewSystemLocationProvider(); | 40 return ::NewSystemLocationProvider(); |
| 41 } | 41 } |
| OLD | NEW |