summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/network_location_request.cc
Commit message (Collapse)AuthorAgeFilesLines
* Defer sending wifi data via the network provider until permission has been ↵joth@chromium.org2010-04-011-25/+25
| | | | | | | | | | | | | | granted to use geolocaiton. Also fixes a long standing todos/bugs that the host sent in the network request was not set correctly, and location results were not always tagged against the correct source data in the cache. BUG=39171 TEST=run with --geolocation-enabled and --log-level=0, check from logs that no location request sent until authorized. Review URL: http://codereview.chromium.org/1541008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43339 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from using custom time / epoch handling code (inherited from gears) ↵joth@chromium.org2010-03-161-16/+33
| | | | | | | | | | | to base::Time BUG=http://code.google.com/p/chromium/issues/detail?id=37510 TEST=unit_tests --gtest_filter=geol* Review URL: http://codereview.chromium.org/776001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41722 0039d316-1c4b-4281-b951-d872f2087c98
* Misc tidy up:joth@chromium.org2010-02-261-1/+1
| | | | | | | | | | | | - rename NewPolicyPolicy to NewPollingPolicy - log content of json request string, rather than its address BUG=none TEST=run browser, looked at logging output Review URL: http://codereview.chromium.org/661091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40104 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some bugs discovered whilst making trial integration of geolocaiton ↵joth@chromium.org2010-02-231-4/+4
| | | | | | | | | | | pieces (http://codereview.chromium.org/650060/) & add tests for these cases. BUG=none TEST=GeolocationNetworkProviderTest.{NoRequestOnStartupUntilWifiData|NewDataReplacesExistingNetworkRequest} Review URL: http://codereview.chromium.org/652066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39734 0039d316-1c4b-4281-b951-d872f2087c98
* Fix geolocation network request to not send/save cookies or send ↵joth@chromium.org2010-02-221-18/+5
| | | | | | | | | | | | | | authentication data when accessing the network location server. This is to conserve user privacy. Remove obsolete todos whilst in there. BUG=http://crbug.com/11246 TEST=use wireshark to inspect request headers sent. Review URL: http://codereview.chromium.org/650144 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39629 0039d316-1c4b-4281-b951-d872f2087c98
* Second try for:bulach@chromium.org2010-02-191-8/+8
| | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=39374 Initial Geolocation implementation Adds IPC plumbing. Adds Infobar buttons for requesting permission This change specifically: ui_test_utils::WaitForAppModalDialog registers for listening to notifications too late, i.e., after the dialog had been triggered. Exposes AppModalDialogObserver so that we can register, trigger the dialog, then wait for it. Review URL: http://codereview.chromium.org/647048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39435 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39366 - Initial Geolocation implementationbulach@chromium.org2010-02-181-8/+8
| | | | | | | | | | | | | | Adds IPC plumbing. Adds Infobar buttons for requesting permission TEST=geolocation_browsertest.cc Review URL: http://codereview.chromium.org/548188 TBR=bulach@chromium.org Review URL: http://codereview.chromium.org/646027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39374 0039d316-1c4b-4281-b951-d872f2087c98
* Initial Geolocation implementationbulach@chromium.org2010-02-181-8/+8
| | | | | | | | | | | Adds IPC plumbing. Adds Infobar buttons for requesting permission TEST=geolocation_browsertest.cc Review URL: http://codereview.chromium.org/548188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39366 0039d316-1c4b-4281-b951-d872f2087c98
* Split out of reverted change ↵joth@chromium.org2010-02-051-10/+20
| | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=38207 Commit fixes to code under test, whilst tests themselves are still pending. BUG=http://crbug.com/11246 TEST=see http://codereview.chromium.org/578006 Review URL: http://codereview.chromium.org/571014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38213 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 38207 - bah. still can't work out why this passes fine on local ↵joth@chromium.org2010-02-051-20/+10
| | | | | | | | | | | | | | | | | | | | | machine & try bots. Reattempt at http://src.chromium.org/viewvc/chrome?view=rev&revision=37989 (asserts tidy up slit out into its own change http://codereview.chromium.org/578013/show) Add tests for the geolocation network provider. Also some small tidy up a few other files. BUG=http://crbug.com/11246 TEST=unit_tests.exe gtest_filter=NetworkLocationProvider* gtest_break_on_failure Review URL: http://codereview.chromium.org/578006 TBR=joth@chromium.org Review URL: http://codereview.chromium.org/575021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38208 0039d316-1c4b-4281-b951-d872f2087c98
* Re-attempt at http://src.chromium.org/viewvc/chrome?view=rev&revision=37989 joth@chromium.org2010-02-051-10/+20
| | | | | | | | | | | | | | | (asserts tidy up slit out into its own change http://codereview.chromium.org/578013/show) Add tests for the geolocation network provider. Also some small tidy up a few other files. BUG=http://crbug.com/11246 TEST=unit_tests.exe --gtest_filter=NetworkLocationProvider* --gtest_break_on_failure Review URL: http://codereview.chromium.org/578006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38207 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 37989 - unit test failed on Mac builder despite passing on try serverjoth@chromium.org2010-02-031-1/+1
| | | | | | | | | | | | | | | | Original change: Add tests for the geolocation network provider. Also some small tidy up a few other files. BUG=http://crbug.com/11246 TEST=unit_tests.exe gtest_filter=NetworkLocationProvider* gtest_break_on_failure Review URL: http://codereview.chromium.org/556106 TBR=joth@chromium.org Review URL: http://codereview.chromium.org/570006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37992 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for the geolocation network provider.joth@chromium.org2010-02-031-1/+1
| | | | | | | | | | | Also some small tidy up a few other files. BUG=http://crbug.com/11246 TEST=unit_tests.exe --gtest_filter=NetworkLocationProvider* --gtest_break_on_failure Review URL: http://codereview.chromium.org/556106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37989 0039d316-1c4b-4281-b951-d872f2087c98
* Port the gears geolocation network provider to Chromiumjoth@chromium.org2010-02-021-449/+292
| | | | | | | | | BUG=http://crbug.com/11246 TEST=See http://codereview.chromium.org/556106 Review URL: http://codereview.chromium.org/552250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37850 0039d316-1c4b-4281-b951-d872f2087c98
* Add more gears geolocaiton files into chromium: locaiton provider, network ↵joth@chromium.org2010-01-281-0/+561
location provider, and backoff maanger. All files are from svn checkout http://gears.googlecode.com/svn/trunk/ gears-read-only r3414 Only modification is #if 0 around each file, to avoid build / checkdeps breakage. BUG=11246 TEST=None (just importing code, tests to follow) Review URL: http://codereview.chromium.org/555148 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37400 0039d316-1c4b-4281-b951-d872f2087c98