summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/protocol_manager_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use a different tpl= parameter when reporting an error from client-side ↵bryner@chromium.org2011-05-261-0/+9
| | | | | | | | | | | | | phishing detection. This extends SafeBrowsingService::UrlCheckResult to add a new type for client-side phishing urls. BUG=83436 TEST=ClientSideDetectionHostTest Review URL: http://codereview.chromium.org/7076009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86915 0039d316-1c4b-4281-b951-d872f2087c98
* safebrowsing: Set threat_list for BINARY_MALWARE_HASH ping.mattm@chromium.org2011-04-211-1/+19
| | | | | | | | | | BUG=80098 TEST=official debug build shouldn't hit DCHECK. pingback content verified with tcpdump. Review URL: http://codereview.chromium.org/6889001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82547 0039d316-1c4b-4281-b951-d872f2087c98
* Send malware reports when a user opts-in from the safe browsing interstitial ↵panayiotis@google.com2010-12-101-3/+14
| | | | | | | | | | | | | | | | | page. In this first iteration, the reports are minimal, but I created a new class because I would like to expand them. Workflow: A SafeBrowsingBlockingPage is shown. A new MalwareReport object is created. The blocking page goes away, either when the user clicks proceed, go back or closed the tab. We read the user's preference, and if we have a pending report, we pass it on to the SafeBrowsingService so it can send it. Depends on: http://codereview.chromium.org/4827001/ Also relevant: http://codereview.chromium.org/5102001/ Design doc: https://docs.google.com/document/edit?id=1s-7qMjm23onV68SyqO6yi-xsfFzz4OBSOyHoV3cY8mQ&authkey=CMCF-MID BUG=60831 TEST=unit_tests,relevant browser_test Review URL: http://codereview.chromium.org/4822002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68828 0039d316-1c4b-4281-b951-d872f2087c98
* Ping Google whenever a SafeBrowsing interstitial is shown to UMA users.noelutz@google.com2010-10-071-9/+11
| | | | | | | | | | | | | | | | | Whenever we show an interstitial to a UMA user we are sending a report request to SafeBrowsing servers so that we can count how many users saw a particular malicious URL. This change does not require any modification to the current privacy policy for UMA users since this is already covered by the current privacy policy. BUG=None TEST=SafeBrowsingProtocolManagerTest Review URL: http://codereview.chromium.org/3353011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61873 0039d316-1c4b-4281-b951-d872f2087c98
* Add "?" to query strings if original url has no query string.lzheng@chromium.org2010-09-071-6/+11
| | | | | | | | BUG=none TEST=protocol_manager_unittest.cc Review URL: http://codereview.chromium.org/3244005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58762 0039d316-1c4b-4281-b951-d872f2087c98
* Report malware redirectors as well.panayiotis@google.com2010-08-121-4/+6
| | | | | | | | BUG=none TEST=unit_tests Review URL: http://codereview.chromium.org/3028040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55966 0039d316-1c4b-4281-b951-d872f2087c98
* Add switches and apis in safebrowsing protocol_manager that will allow ↵lzheng@chromium.org2010-06-291-3/+119
| | | | | | | | | | | end-to-end test later. BUG=6787,47318 TEST=protocol_manager_unittest.cc Review URL: http://codereview.chromium.org/2868030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51177 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a crash during shutdown where SafeBrowsingProtocolManager could end up ↵eroman@chromium.org2009-11-121-3/+3
| | | | | | | | | | | | | | | getting back NULL for Profile::GetDefaultRequestContext() and consequently URLFetcher would crash. During shutdown the Profile is first deleted, and THEN the IO thread is torn down. This means there is a window of time when Profile::GetDefaultRequestContext() will return NULL, but tasks are still running on the IO thread. Instead, SafeBrowsingProtocolManager now gets passed an explicit context, and holds a reference throughout its lifetime. This way it is guaranteed a valid pointer throughout the lifetime of the IO thread, even if the default Profile has already been deleted. BUG=27074 Review URL: http://codereview.chromium.org/392010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31821 0039d316-1c4b-4281-b951-d872f2087c98
* Remove build time differences between Chrome Frame and Google Chrome in therobertshield@chromium.org2009-11-061-3/+3
| | | | | | | | | | | SafeBrowsing code. BUG=26012 TEST=None Review URL: http://codereview.chromium.org/360059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31209 0039d316-1c4b-4281-b951-d872f2087c98
* Fourth patch in getting rid of caching MessageLoop pointers.jam@chromium.org2009-11-021-3/+3
| | | | | | | BUG=25354 Review URL: http://codereview.chromium.org/348037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30751 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the root cause of flakiness in ↵phajdan.jr@chromium.org2009-07-281-9/+8
| | | | | | | | | | | | | SafeBrowsingProtocolManagerTest.TestGetHashBackOffTimes and undisable the test. TEST=none http://crbug.com/1880 Review URL: http://codereview.chromium.org/160225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21843 0039d316-1c4b-4281-b951-d872f2087c98
* NO CODE CHANGE.maruel@google.com2009-03-051-1/+2
| | | | | | | Split the lines >80 cols. (Part 1) Review URL: http://codereview.chromium.org/39206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11032 0039d316-1c4b-4281-b951-d872f2087c98
* Move Time, TimeDelta and TimeTicks into namespace base.dsh@google.com2008-10-271-0/+3
| | | | | | Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
* Use FRIEND_TEST() instead of guessing the test class name (!)maruel@google.com2008-09-081-3/+5
| | | | | | Review URL: http://codereview.chromium.org/1626 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1857 0039d316-1c4b-4281-b951-d872f2087c98
* Disable a flakey test.deanm@google.com2008-09-081-2/+2
| | | | | | | BUG=http://code.google.com/p/chromium/issues/detail?id=1880 Review URL: http://codereview.chromium.org/1816 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1852 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-241-28/+4
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome to the repository.initial.commit2008-07-261-0/+158
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15 0039d316-1c4b-4281-b951-d872f2087c98