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

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

Issue 11366204: Rename SafeBrowsingServiceTest in safe_browsing_test.cc to SafeBrowsingServerTest to avoid collisio… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Clients that we've queued up for checking later once the database is ready. 311 // Clients that we've queued up for checking later once the database is ready.
312 struct QueuedCheck { 312 struct QueuedCheck {
313 Client* client; 313 Client* client;
314 GURL url; 314 GURL url;
315 base::TimeTicks start; // When check was queued. 315 base::TimeTicks start; // When check was queued.
316 }; 316 };
317 317
318 friend struct content::BrowserThread::DeleteOnThread< 318 friend struct content::BrowserThread::DeleteOnThread<
319 content::BrowserThread::UI>; 319 content::BrowserThread::UI>;
320 friend class base::DeleteHelper<SafeBrowsingService>; 320 friend class base::DeleteHelper<SafeBrowsingService>;
321 friend class SafeBrowsingServerTest;
321 friend class SafeBrowsingServiceTest; 322 friend class SafeBrowsingServiceTest;
322 friend class SafeBrowsingServiceCookieTest; 323 friend class SafeBrowsingServiceCookieTest;
323 friend class SafeBrowsingURLRequestContextGetter; 324 friend class SafeBrowsingURLRequestContextGetter;
324 325
325 void InitURLRequestContextOnIOThread( 326 void InitURLRequestContextOnIOThread(
326 net::URLRequestContextGetter* system_url_request_context_getter); 327 net::URLRequestContextGetter* system_url_request_context_getter);
327 328
328 void DestroyURLRequestContextOnIOThread(); 329 void DestroyURLRequestContextOnIOThread();
329 330
330 // Called to initialize objects that are used on the io_thread. This may be 331 // Called to initialize objects that are used on the io_thread. This may be
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 class SafeBrowsingServiceFactory { 592 class SafeBrowsingServiceFactory {
592 public: 593 public:
593 SafeBrowsingServiceFactory() { } 594 SafeBrowsingServiceFactory() { }
594 virtual ~SafeBrowsingServiceFactory() { } 595 virtual ~SafeBrowsingServiceFactory() { }
595 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
596 private: 597 private:
597 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
598 }; 599 };
599 600
600 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager.h ('k') | chrome/browser/safe_browsing/safe_browsing_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698