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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.h

Issue 6014003: Intergration of the client-side phishing detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
10 #pragma once 10 #pragma once
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // Called on the IO thread to cancel a pending check if the result is no 148 // Called on the IO thread to cancel a pending check if the result is no
149 // longer needed. 149 // longer needed.
150 void CancelCheck(Client* client); 150 void CancelCheck(Client* client);
151 151
152 // Called on the IO thread to display an interstitial page. 152 // Called on the IO thread to display an interstitial page.
153 // |url| is the url of the resource that matches a safe browsing list. 153 // |url| is the url of the resource that matches a safe browsing list.
154 // If the request contained a chain of redirects, |url| is the last url 154 // If the request contained a chain of redirects, |url| is the last url
155 // in the chain, and |original_url| is the first one (the root of the 155 // in the chain, and |original_url| is the first one (the root of the
156 // chain). Otherwise, |original_url| = |url|. 156 // chain). Otherwise, |original_url| = |url|.
157 void DisplayBlockingPage(const GURL& url, 157 virtual void DisplayBlockingPage(const GURL& url,
Brian Ryner 2011/02/16 22:37:10 This method has a lot of parameters, as a follow-u
noelutz 2011/02/16 23:22:36 Agreed.
158 const GURL& original_url, 158 const GURL& original_url,
159 const std::vector<GURL>& redirect_urls, 159 const std::vector<GURL>& redirect_urls,
160 ResourceType::Type resource_type, 160 ResourceType::Type resource_type,
161 UrlCheckResult result, 161 UrlCheckResult result,
162 Client* client, 162 Client* client,
163 int render_process_host_id, 163 int render_process_host_id,
164 int render_view_id); 164 int render_view_id);
165 165
166 // Called on the IO thread when the SafeBrowsingProtocolManager has received 166 // Called on the IO thread when the SafeBrowsingProtocolManager has received
167 // the full hash results for prefix hits detected in the database. 167 // the full hash results for prefix hits detected in the database.
168 void HandleGetHashResults( 168 void HandleGetHashResults(
169 SafeBrowsingCheck* check, 169 SafeBrowsingCheck* check,
170 const std::vector<SBFullHashResult>& full_hashes, 170 const std::vector<SBFullHashResult>& full_hashes,
171 bool can_cache); 171 bool can_cache);
172 172
173 // Called on the IO thread. 173 // Called on the IO thread.
174 void HandleChunk(const std::string& list, SBChunkList* chunks); 174 void HandleChunk(const std::string& list, SBChunkList* chunks);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 class SafeBrowsingServiceFactory { 397 class SafeBrowsingServiceFactory {
398 public: 398 public:
399 SafeBrowsingServiceFactory() { } 399 SafeBrowsingServiceFactory() { }
400 virtual ~SafeBrowsingServiceFactory() { } 400 virtual ~SafeBrowsingServiceFactory() { }
401 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 401 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
402 private: 402 private:
403 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 403 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
404 }; 404 };
405 405
406 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 406 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698