summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/location_api_adapter_android.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add a mechanism to pause and resume geolocation requests. Currently Android ↵benm@chromium.org2013-12-131-4/+5
| | | | | | | | | | | | | | | | WebView is the only platform to make use of this new API. We implement this as a new API on the Browser-side GeolocationDispatcherHost. In doing so: - Refactor the current LocationProvider such that it doesn't rely on ActivityStatus, updating LocationProviderTest accordingly - Introduce ContentViewLocationTest.java that verifies the LocationProvider implementation is paused and resumed when the ContentView is hidde/shown - Introduce a AwGeolocationTest that verifies the LocationProvider implementation is paused and resumed when the new API is invoked - Introduce LocationProviderFactory and a MockLocationProvider to avoid relying on the system location provider when running tests, as it's not possible to enable mock locations on Android user builds without physical access to the device. BUG=b/11336074 Review URL: https://codereview.chromium.org/65273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240719 0039d316-1c4b-4281-b951-d872f2087c98
* Update Android to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-131-2/+2
| | | | | | | | | | | Android fixes and post-Linux cleanup BUG=110610 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16907002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206179 0039d316-1c4b-4281-b951-d872f2087c98
* Move geolocation code to content namespace.jam@chromium.org2012-10-291-6/+10
| | | | | | | TBR=scottmg Review URL: https://codereview.chromium.org/11276058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164586 0039d316-1c4b-4281-b951-d872f2087c98
* Android: lazy initialization for method id.bulach@chromium.org2012-10-161-1/+0
| | | | | | | | | | | | | | | | | | Rather than requiring early registration for all method id, we can initialize them lazily as required. This solves the problem of building against SDK X but running against X - 1. Also adds a microbenchmark to ensure there are no considerable regressions. Results are a bit variable, but it hovers over: [ERROR:jni_android_unittest.cc(125)] JNI LazyMethodIDCall (us) 1983 [ERROR:jni_android_unittest.cc(127)] JNI MethodIDCall (us) 1862 BUG=152987 TEST=JNIAndroidMicrobenchmark.MethodId TBR=akalin Review URL: https://chromiumcodereview.appspot.com/11038015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162186 0039d316-1c4b-4281-b951-d872f2087c98
* Uses gyp "rules" rather than "actions" templates for the JNI generator.bulach@chromium.org2012-07-191-1/+1
| | | | | | | | | | | | | | | | | This allow finer grain control over what is rebuilt. Also, since we have approval over the generated header file name, it greatly simplifies both the generator and also all the gyp files as they no longer need to list the header file and keep in sync with the java file, so the process now is as simple as adding a single java file to the sources. BUG=137069 TEST=build on android Review URL: https://chromiumcodereview.appspot.com/10798010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147515 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Geolocation timestamp fix.jknotten@chromium.org2012-05-161-3/+3
| | | | | | | | | | We need to pass the timestamp as a double rather than as a long to avoid overflow. Review URL: https://chromiumcodereview.appspot.com/10392128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137438 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream Geolocation for Android.jknotten@chromium.org2012-05-091-0/+160
TEST=content_unittests: GeolocationProvider.* LocationArbitrator.* There are also some integration tests downstream for the Java specific part. Review URL: https://chromiumcodereview.appspot.com/10209003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136019 0039d316-1c4b-4281-b951-d872f2087c98